content = urllib.request.urlopen(
    'http://www.teamrankings.com/ajax/league/v3/stats_controller.php', data
    =urllib.parse.urlencode(params).encode('utf8')).read()
soup = BeautifulSoup(content)
table = soup.find('table', attrs={'class': 'sortable'})
data = []
rows = table.findAll('tr')
for tr in rows:
    cols = tr.findAll('td')
for td in cols:
    text = ''.join(td.find(text=True))
data.append(text)
print(data)
Python web scraping - how to get resources with beautiful soup when page loads contents via JS?