Free NBA Play by Play Data

Home for all your discussion of basketball statistical analysis.
Post Reply
vivtalla
Posts: 3
Joined: Tue Sep 11, 2018 7:19 am

Free NBA Play by Play Data

Post by vivtalla » Fri Sep 14, 2018 7:44 am

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!

DSMok1
Posts: 850
Joined: Thu Apr 14, 2011 11:18 pm
Location: Maine
Contact:

Re: Free NBA Play by Play Data

Post by DSMok1 » Fri Sep 14, 2018 12:45 pm

This should have most of what you need: https://github.com/ethanluoyc/statsnba-playbyplay
Developer of Box Plus/Minus
APBRmetrics Forum Administrator
GodismyJudgeOK.com/DStats/
Twitter.com/DSMok1

vivtalla
Posts: 3
Joined: Tue Sep 11, 2018 7:19 am

Re: Free NBA Play by Play Data

Post by vivtalla » Fri Sep 14, 2018 6:00 pm

Ok I'll definitely try it out. Thanks so much!

Rd11490
Posts: 101
Joined: Mon Sep 29, 2014 4:54 am

Re: Free NBA Play by Play Data

Post by Rd11490 » Mon Sep 17, 2018 1:55 pm

You should be able to find anything you need here.

https://drive.google.com/open?id=19WhE2 ... fooejMTwNo

vivtalla
Posts: 3
Joined: Tue Sep 11, 2018 7:19 am

Re: Free NBA Play by Play Data

Post by vivtalla » Fri Sep 21, 2018 9:28 pm

Wow this is awesome, and helps me out a ton. Thanks!

nbacouchside
Posts: 110
Joined: Sun Jul 14, 2013 4:58 am
Contact:

Re: Free NBA Play by Play Data

Post by nbacouchside » Mon Oct 15, 2018 5:31 am

DSMok1 wrote:
Fri Sep 14, 2018 12:45 pm
This should have most of what you need: https://github.com/ethanluoyc/statsnba-playbyplay
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.

Rd11490
Posts: 101
Joined: Mon Sep 29, 2014 4:54 am

Re: Free NBA Play by Play Data

Post by Rd11490 » Mon Oct 15, 2018 2:43 pm

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>

nbacouchside
Posts: 110
Joined: Sun Jul 14, 2013 4:58 am
Contact:

Re: Free NBA Play by Play Data

Post by nbacouchside » Mon Oct 15, 2018 3:13 pm

Rd11490 wrote:
Mon Oct 15, 2018 2:43 pm
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>
So if I wanted to use these scripts to pull a full seasons worth of data, I would have to modify them, probably?

Rd11490
Posts: 101
Joined: Mon Sep 29, 2014 4:54 am

Re: Free NBA Play by Play Data

Post by Rd11490 » Mon Oct 15, 2018 3:26 pm

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.

Post Reply