API Web Scraping NBA Stats in Python | NBA Data Analytics Project (part 1/2)

preview_player
Показать описание

Contact me:

Рекомендации по теме
Комментарии
Автор

This was awesome! I’ve been wanting to scrape sports data in a loop like this for a while. Thanks!

scottgower
Автор

Thanks a lot for taking the time to make this video man, I'm a huge sports fan who's been self learning Python for the last 4 months or so. Just getting into looking at Jupyter, Numpy and Pandas, so these videos are a great resource for me. Why don't NBA stats want you scraping from them? I don't understand what the issue is, is it just that large numbers of requests put pressure on their servers? Will move on to part 2 now!

tomkmb
Автор

They have an option to share the data which allows you to download it... no need to scrap 🎉

phantasm
Автор

Excellent video content and beautiful scrap data.

orlandodeabreu
Автор

Can you look at FT differential vs W/L and look at statistical significant correlations of this happening to large markets over small markets ?

derrickbecker
Автор

Great video, really easy to follow along.

chels
Автор

Is there a diff technique to get teams data because whenever I try this technique to get teams data the server connections get abot=rted without response
if there is any other way pls do tell me

aalapdesai
Автор

Guys does anyone watching this actually have a winning sports betting model is it possible or are the casinos already on it

tanner
Автор

Great video, thanks for the info! I was trying to recreate this but it seems like they've locked the page down quite a bit, any time I pull any of the URLs it just continuously loads and never renders. Any suggestions/tips to pull this data consistently?

msportslife
Автор

At 7:30 when you say that data used to be available but not anymore... is there really no way to get it? For example if I wanna pull team's offensive and defensive ratings (which has the same problem as those shooting stats), is the only way to get it is through scraping the hmtl source?

Fabo
Автор

what exactly did you do to solve the final error? I got the same error. removed headers=headers but I'm still getting the same error.

ramfanintexas
Автор

how did you get your data extracted into Excel? I compress all seasons from 2012 - 2021 & then input "data =

hahathatsucks
Автор

I am not able to scrape data. It crashes when fetching data for 2012-13 playoffs season. Can you help?

Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
File "C:\ProgramData\Anaconda3\lib\json\__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\ProgramData\Anaconda3\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Nishchay\AppData\Local\Temp\ipykernel_12448\3071084054.py", line 29, in <module>
r = requests.get(url = api_url).json()
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
Expecting value: line 1 column 1 (char 0)

nishchay