mirror of
https://github.com/nprasad2077/nbaStats.git
synced 2026-11-09 19:40:39 +00:00
bball scrape rows complete
This commit is contained in:
1 parent
f783af6f2d
commit
6ecf1ddddb
1 file changed
+13
@@ -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