I’m trying to scrape and parse a table of results from basketball reference using Beautiful soup in python.
Here is the page i’m trying to scrape: https://www.basketball-reference.com/boxscores/202310270BOS.html
I want to parse the miami heat basic stats with id “box-MIA-game-basic”
page=requests.get(f"https://www.basketball-reference.com/boxscores/202301270BOS.html")
soup = BeautifulSoup(page.text,'html.parser')
print(soup.find(id='box-MIA-game-basic'))
When i run this the output is “None”
how can I get it to output the parsed table?
New contributor
Alistair Wallman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.