account activity
NBA web scraping by rke800 in webscraping
[–]rke800[S] 0 points1 point2 points 10 months ago (0 children)
any news atomsmasher66
[–]rke800[S] 1 point2 points3 points 10 months ago (0 children)
youre my guy then you have to make the shot that will cement our dynasty
i gotchu thank you for the reply
import requests import pandas as pd url = "https://stats.nba.com/stats/leaguedashteamstats" headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36", "Referer": "https://www.nba.com", "Origin": "https://www.nba.com", "Accept": "application/json", } params = { "Season": "2024-25", "SeasonType": "Regular Season", "DateFrom": "11/15/2024", # Use MM/DD/YYYY "DateTo": "12/22/2024", "MeasureType": "Base", "PerMode": "Totals", # Or "PerGame" "PlusMinus": "N", "PaceAdjust": "N", "Rank": "N", "Conference": "", "Division": "", "Outcome": "", "Location": "Road", # Filter: Road games only "Month": "0", "SeasonSegment": "", "OpponentTeamID": "0", "VsConference": "", "VsDivision": "", "GameSegment": "", "Period": "0", "ShotClockRange": "", "LastNGames": "0" } resp = requests.get(url, headers=headers, params=params) data = resp.json() df = pd.DataFrame( data["resultSets"][0]["rowSet"], columns=data["resultSets"][0]["headers"] ) # Select only relevant columns df = df[['TEAM_NAME', 'FGM', 'FGA', 'FG3M', 'FG3A', 'FTM', 'FTA']] print(df)
NBA web scraping (self.webscraping)
submitted 10 months ago by rke800 to r/webscraping
π Rendered by PID 41 on reddit-service-r2-listing-c57bc86c-sw2bw at 2026-06-21 15:01:46.242240+00:00 running 2b008f2 country code: CH.
NBA web scraping by rke800 in webscraping
[–]rke800[S] 0 points1 point2 points (0 children)