mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-04 09:15:35 +00:00
bball scrape rows complete
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user