beautifulsoup could not find class
<p>I tried to use bs4 to get the table from one NBA stat site.</p>

<p>The website seems did not use the JavaScript.</p>

<p>The <code>soup.prettify</code> print result looks normal, but I could not use <code>soup.find_all</code> to get the table I want. Here's the code I'm using:</p>

<pre><code>import requests
from bs4 import BeautifulSoup

url = 'http://stats.nba.com/team/#!/1610612738/stats/'
page = requests.get(url)
html = page.content
soup = BeautifulSoup(html, 'html.parser') 

tables = soup.find_all('table')
</code></pre>

<p>The website loads data with <a href="https://developer.mozilla.org/en-US/docs/AJAX/Getting_Started" rel="nofollow">ajax</a>, and this data will not be available to you simply by getting page contents with BeautifulSoup. However, you probably don't need BeautifulSoup at all.</p>

<p>If you're using Chrome, visit the website and go to your browser's dev tools, click on the network tab, click the XHR filter, then reload the page. You'll see 
a list of requests that were made: </p>

<p><a href="http://i.stack.imgur.com/WHIUz.png" rel="nofollow"><img src="http://i.stack.imgur.com/WHIUz.png" alt="enter image description here"></a></p>

<p>Click on those and see which ones you're interested in. Once you find the one you like, copy the url, and get the data with the requests library (you already included this in your code):</p>

<pre><code>r = requests.get('http://stats.nba.com/stats/commonallplayers?IsOnlyCurrentSeason=0&amp;LeagueID=00&amp;Season=2016-17')
data = r.json()
</code></pre>

python python-3.x web-scraping beautifulsoup