From 6ecf1ddddbdee1edd7be68aecc4dd293021241eb Mon Sep 17 00:00:00 2001 From: nprasad2077 <114438461+nprasad2077@users.noreply.github.com> Date: Thu, 13 Apr 2023 23:09:52 -0500 Subject: [PATCH] bball scrape rows complete --- src/scraper.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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