diff --git a/src/scraper.py b/src/scraper.py index e69de29..ef47cc2 100644 --- a/src/scraper.py +++ b/src/scraper.py @@ -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) \ No newline at end of file