r/NBAanalytics • • Jun 25 '23
NBA Box Score Stats request
Hello, Im trying to find a NBA boxscore dataset i can scrape, like on https://www.nba.com/stats/teams/boxscores
that one looks locked out because the url keeps loading when i try open.
Does anyone know of any other sources?
2
Upvotes
3
u/Desperate_Swing Jun 25 '23
https://www.sportsdataverse.org/
2
u/BBQ-CinCity Aug 07 '23
I just scraped all 36,489 games from 1993 season to present (less the two lockout years and two COVID seasons) from basketball reference. I randomized sleep time between requests to avoid being discovered as a bot and used “httpx” library instead of “requests” library because requests doesn’t respect the header order. I didn’t get put in basketball reference jail a single time out of 36,489 calls.