Howdy all,
Does anyone know how to export data via data tab > from web on excel. Whenever I attempt to do it, the table will not show up.
I'd like to be able to keep current stats in Excel so I do not have to manually copy and paste the tables each time.
If anyone knows how to do this or has a different way, please let me know.
Exporting Data from nba.com/stats
Moderator: Doctor MJ
Exporting Data from nba.com/stats
- ijspeelman
- Forum Mod - Cavs
- Posts: 2,616
- And1: 1,209
- Joined: Feb 17, 2022
- Contact:
-
Re: Exporting Data from nba.com/stats
-
- Analyst
- Posts: 3,438
- And1: 3,538
- Joined: Feb 13, 2014
Re: Exporting Data from nba.com/stats
You can f12, inspect element, copy element. And it will copy it in table format and it’s easy to paste into excel.
There are plenty of other sites that already have it tho and have exports if you’re looking for something specific
There are plenty of other sites that already have it tho and have exports if you’re looking for something specific
76ciology wrote:Wouldn't Edey have a better chance of winning the scoring battle against Tatum in the post after a switch than Tatum shooting over Edey's 9'6" standing reach?





Re: Exporting Data from nba.com/stats
- ijspeelman
- Forum Mod - Cavs
- Posts: 2,616
- And1: 1,209
- Joined: Feb 17, 2022
- Contact:
-
Re: Exporting Data from nba.com/stats
jasonxxx102 wrote:You can f12, inspect element, copy element. And it will copy it in table format and it’s easy to paste into excel.
There are plenty of other sites that already have it tho and have exports if you’re looking for something specific
I really want to be able to have a copies of these tables in excel that can update easily so I don't have to re-copy and paste each time I need updated data.
Re: Exporting Data from nba.com/stats
-
- Analyst
- Posts: 3,438
- And1: 3,538
- Joined: Feb 13, 2014
Re: Exporting Data from nba.com/stats
ijspeelman wrote:jasonxxx102 wrote:You can f12, inspect element, copy element. And it will copy it in table format and it’s easy to paste into excel.
There are plenty of other sites that already have it tho and have exports if you’re looking for something specific
I really want to be able to have a copies of these tables in excel that can update easily so I don't have to re-copy and paste each time I need updated data.
Without using python I don’t believe there’s a way to do what you’re wanting to do
76ciology wrote:Wouldn't Edey have a better chance of winning the scoring battle against Tatum in the post after a switch than Tatum shooting over Edey's 9'6" standing reach?





Re: Exporting Data from nba.com/stats
- ijspeelman
- Forum Mod - Cavs
- Posts: 2,616
- And1: 1,209
- Joined: Feb 17, 2022
- Contact:
-
Re: Exporting Data from nba.com/stats
jasonxxx102 wrote:ijspeelman wrote:jasonxxx102 wrote:You can f12, inspect element, copy element. And it will copy it in table format and it’s easy to paste into excel.
There are plenty of other sites that already have it tho and have exports if you’re looking for something specific
I really want to be able to have a copies of these tables in excel that can update easily so I don't have to re-copy and paste each time I need updated data.
Without using python I don’t believe there’s a way to do what you’re wanting to do
I found a good video on potential python options (https://youtu.be/nHtlRlWmTV4), but it looks like NBA blocks some of their more advanced statistics from his method as well. He does mention in the comments that there are other methods to accessing those as well, but its more complicated.
Guess its time to hunker down and learn python.
Re: Exporting Data from nba.com/stats
-
- Analyst
- Posts: 3,438
- And1: 3,538
- Joined: Feb 13, 2014
Re: Exporting Data from nba.com/stats
ijspeelman wrote:jasonxxx102 wrote:ijspeelman wrote:
I really want to be able to have a copies of these tables in excel that can update easily so I don't have to re-copy and paste each time I need updated data.
Without using python I don’t believe there’s a way to do what you’re wanting to do
I found a good video on potential python options (https://youtu.be/nHtlRlWmTV4), but it looks like NBA blocks some of their more advanced statistics from his method as well. He does mention in the comments that there are other methods to accessing those as well, but its more complicated.
Guess its time to hunker down and learn python.
The way to get around whatever NBA is blocking is to use python with selenium. That way you can emulate a user and spin up a browser instance directly so the site can’t tell that you’re using a script.
Try and use chat gpt to build a framework and tweak it as you see fit
76ciology wrote:Wouldn't Edey have a better chance of winning the scoring battle against Tatum in the post after a switch than Tatum shooting over Edey's 9'6" standing reach?





Re: Exporting Data from nba.com/stats
-
- Analyst
- Posts: 3,438
- And1: 3,538
- Joined: Feb 13, 2014
Re: Exporting Data from nba.com/stats
ijspeelman wrote:jasonxxx102 wrote:ijspeelman wrote:
I really want to be able to have a copies of these tables in excel that can update easily so I don't have to re-copy and paste each time I need updated data.
Without using python I don’t believe there’s a way to do what you’re wanting to do
I found a good video on potential python options (https://youtu.be/nHtlRlWmTV4), but it looks like NBA blocks some of their more advanced statistics from his method as well. He does mention in the comments that there are other methods to accessing those as well, but its more complicated.
Guess its time to hunker down and learn python.
If you need any help feel free to reach out. I've done a bunch in python, a few different kinds of web scrapers and I have experience with selenium as well in both python and c#
76ciology wrote:Wouldn't Edey have a better chance of winning the scoring battle against Tatum in the post after a switch than Tatum shooting over Edey's 9'6" standing reach?





Re: Exporting Data from nba.com/stats
- WestGOAT
- Veteran
- Posts: 2,584
- And1: 3,491
- Joined: Dec 20, 2015
Re: Exporting Data from nba.com/stats
ijspeelman wrote:jasonxxx102 wrote:ijspeelman wrote:
I really want to be able to have a copies of these tables in excel that can update easily so I don't have to re-copy and paste each time I need updated data.
Without using python I don’t believe there’s a way to do what you’re wanting to do
I found a good video on potential python options (https://youtu.be/nHtlRlWmTV4), but it looks like NBA blocks some of their more advanced statistics from his method as well. He does mention in the comments that there are other methods to accessing those as well, but its more complicated.
Guess its time to hunker down and learn python.
If you are looking to collect similar data as what you can find on pbpstats.com using Python have a look at this github:
https://github.com/dblackrun/pbpstats
Basically contains the python code you need to collect this type of data, and could be a nice resource/gateway to learn Python.

spotted in Bologna
Return to Statistical Analysis