Page 1 of 1
Free NBA Play by Play Data
Posted: Fri Sep 14, 2018 7:44 am
by vivtalla
I've been searching the web for free NBA play by play data - preferably formatted as a CSV or excel file - to do some NBA analysis, but have been unsuccessful finding what I'm looking for.
Does anybody know where I could go to find this data/have any tips on how to go about finding this data?
For a general idea of what I'm looking for, I found something similar at this URL -
https://www.bigdataball.com/nba-histori ... n=glossary. The only problem is the data here is rather pricey.
Thanks in advance!
Re: Free NBA Play by Play Data
Posted: Fri Sep 14, 2018 12:45 pm
by DSMok1
Re: Free NBA Play by Play Data
Posted: Fri Sep 14, 2018 6:00 pm
by vivtalla
Ok I'll definitely try it out. Thanks so much!
Re: Free NBA Play by Play Data
Posted: Mon Sep 17, 2018 1:55 pm
by Rd11490
Re: Free NBA Play by Play Data
Posted: Fri Sep 21, 2018 9:28 pm
by vivtalla
Wow this is awesome, and helps me out a ton. Thanks!
Re: Free NBA Play by Play Data
Posted: Mon Oct 15, 2018 5:31 am
by nbacouchside
Can someone who knows where things are on github explain to me where I can go to see how to actually utilize the statsnba-playbyplay package? I installed it, but I have no idea wht it can do or how to use it to scrape play-by-play or parse it.
Sorry for the (probably) stupid question.
Re: Free NBA Play by Play Data
Posted: Mon Oct 15, 2018 2:43 pm
by Rd11490
I've never use the packaged, but from what I can tell these are the two scripts you would run.
https://github.com/ethanluoyc/statsnba- ... er/scripts
You would run them as:
python PATH/TO/INSTALLED/scripts/download_playbyplay.py -i <GAME_ID> -o <FILE_TO_SAVE>
Re: Free NBA Play by Play Data
Posted: Mon Oct 15, 2018 3:13 pm
by nbacouchside
So if I wanted to use these scripts to pull a full seasons worth of data, I would have to modify them, probably?
Re: Free NBA Play by Play Data
Posted: Mon Oct 15, 2018 3:26 pm
by Rd11490
Yeah, you'd either need to do that, or import the project and write some more code to manually call the methods that those scripts call.