bball scrape rows complete

This commit is contained in:
nprasad2077
2023-04-13 23:09:52 -05:00
parent f783af6f2d
commit 6ecf1ddddb
+13
View File
@@ -0,0 +1,13 @@
import requests
from bs4 import BeautifulSoup
url = 'https://www.basketball-reference.com/teams/HOU/2018.html'
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
table = soup.find("table", {"id": "per_game"})
rows = table.find_all("tr")
# print(rows)