jaebradley / basketball_reference_web_scraper

NBA Stats API via Basketball Reference
http://jaebradley.github.io/basketball_reference_web_scraper/
MIT License
442 stars 108 forks source link

Shot Chart Data #219

Open germannp opened 3 years ago

germannp commented 3 years ago

Hello, Are there by any chance plans to make shot chart data of each game also available? Would love to have that data, but I fear I am not skilled enough for implementing this ... In any case, thanks a lot for this library, makes playing with these data super easy! Cheers.

jaebradley commented 3 years ago

@germannp thanks for opening this issue

As you've probably already seen, the HTML for this shot chart looks something like this

image

It looks like the tooltip positions around shots on the image of the court are calculated using pixels in the style property of the underlying divs.

You could probably convert the pixels into a distance on the court if you knew what the reference point was.

Definitely an interesting resource and idea.

benjaminmesser commented 2 weeks ago

+1 for this being a very interesting idea to try to implement