Added to my public basketball GitHub - a web scraper to pull the very detailed CNN/SI NBA data feed. These are recap, boxscore and play-by-play JSON files; the play-by-play data includes (x,y) shot coordinates. Enjoy!
https://github.com/galizur/basketball-public
-Chris
CNN/SI Play-by-Play NBA Data Feed
Re: CNN/SI Play-by-Play NBA Data Feed
Here are some samples.
http://data.sportsillustrated.cnn.com/j ... score.json
http://data.sportsillustrated.cnn.com/j ... yplay.json
To locate hidden files like these you can use e.g. Chrome's "Inspect Element" feature (Firefox has something similar) and observe which files are going across the network.
-Chris
http://data.sportsillustrated.cnn.com/j ... score.json
http://data.sportsillustrated.cnn.com/j ... yplay.json
To locate hidden files like these you can use e.g. Chrome's "Inspect Element" feature (Firefox has something similar) and observe which files are going across the network.
-Chris
Re: CNN/SI Play-by-Play NBA Data Feed
Very nice. It looks like the json files are only available for the current season. Is that your understanding?
Re: CNN/SI Play-by-Play NBA Data Feed
Yes, I've tried to pull JSON files for the previous years but no luck.boooeee wrote:Very nice. It looks like the json files are only available for the current season. Is that your understanding?
I've decompiled the Shockwave client that CBS uses; with some more work I should be able work out how to pull XML or JSON files from them.
-Chris
Re: CNN/SI Play-by-Play NBA Data Feed
Good stuff. Thanks. I was curious if you have a scraper for getting data from data.nba.com, or how I'd go about getting a developer to modify what you have built for getting data from data.nba.com? (I'm not a techie).Eternal wrote:Here are some samples.
http://data.sportsillustrated.cnn.com/j ... score.json
http://data.sportsillustrated.cnn.com/j ... yplay.json
To locate hidden files like these you can use e.g. Chrome's "Inspect Element" feature (Firefox has something similar) and observe which files are going across the network.
-Chris
Re: CNN/SI Play-by-Play NBA Data Feed
There's a hidden JSON data feed from nba.com, as I mentioned in a previous message. I've gone ahead and written a scraper to pull this data, which appears to go back a number of years.ballclub wrote: Good stuff. Thanks. I was curious if you have a scraper for getting data from data.nba.com, or how I'd go about getting a developer to modify what you have built for getting data from data.nba.com? (I'm not a techie).
It will appear here once I've finished scraping the data. Warning, the CSV files contain JSON objects.
https://github.com/galizur/basketball-p ... master/nba
-Chris
Re: CNN/SI Play-by-Play NBA Data Feed
Thanks a bunch! I'll let you know (or someone else I know) if we have any follow-up questions. Thanks again.
Re: CNN/SI Play-by-Play NBA Data Feed
Eternal - Are you aware of any play by play json feeds for NCAA Basketball? CNN/SI has the box scores in the same format as the NBA, but no play by play data unfortunately.