Script for PBP w/ Lineups
Posted: Sat Jun 10, 2017 3:01 pm
I have seen a few threads talking about scraping play-by-play with lineups, for use in calculating APM derivatives. I created a script last year for doing so from stats.nba.com, and have uploaded it to GitHub.
https://github.com/hwchase17/Play-By-Pl ... th-Lineups
This gets all PBP w/ lineups for the 2016-17 season (changing season is trivial) and saves it to a .csv file.
It works successfully for the past two seasons, but I haven't tested it out on any others. I don't imagine there should be any errors, please let me know - best way is on Twitter @aabsblog as I don't check this forum that often.
https://github.com/hwchase17/Play-By-Pl ... th-Lineups
This gets all PBP w/ lineups for the 2016-17 season (changing season is trivial) and saves it to a .csv file.
It works successfully for the past two seasons, but I haven't tested it out on any others. I don't imagine there should be any errors, please let me know - best way is on Twitter @aabsblog as I don't check this forum that often.