I'm trying to parse a table from the nfl standings website. I'm looking at the first table, "American Football Conference". When I visit the page in a browser and "Inspect element" I can see <table>
, <tr>
, and <td>
tags, but I can't find the table using BeautifulSoup.
from bs4 import BeautifulSoup
import requests
html_data = requests.get('https://www.nfl.com/standings').text
soup = BeautifulSoup(html_data, 'lxml')
print(soup.find('table') is None) # prints True
print(soup.find('tr') is None) # prints True
print(soup.find('td') is None) # prints True