title: Python Beautiful Soup scape page containing Java Script
body: <p>I am trying to scrape from this page:
  <a href="http://www.scoresway.com/?sport=basketball&amp;page=match&amp;id=45926" rel="nofollow">http://www.scoresway.com/?sport=basketball&amp;page=match&amp;id=45926</a></p>
  
  <p>but having trouble getting some of the data.</p>
  
  <p>The second table on the page contains the home team boxscore.  The boxscore is split between 'basic' and 'advanced' stats.  This code prints the 'basic' total stats for the home team.</p>
  
  <pre><code>from BeautifulSoup import BeautifulSoup
  import requests
  
  gameId = 45926
  url = 'http://www.scoresway.com/?sport=basketball&amp;page=match&amp;id=' + str(gameId)
  r = requests.get(url)
  soup = BeautifulSoup(r.content)
  
  for x in soup.findAll('table')[1].findAll('tr')[-1].findAll('td'):
      print ''.join(x.findAll(text=True))
  </code></pre>
  
  <p>If you want to see the 'advanced' stats you click on the Advanced 'link' and it shows it while keeping you on the same page.  I want to scrape that info as well but don't know how to get at it. </p>