roclark / sportsipy

A free sports API written for python
MIT License
475 stars 189 forks source link

NBA Schedule returning empty objects #787

Open riders994 opened 9 months ago

riders994 commented 9 months ago

Describe the bug NBA Schedule not working

To Reproduce


sched = Schedule('ATL')
## sched = Schedule('ATL', 2023) will have same result
## Console prints: The requested page returned a valid response, but no data could be found. Has the season begun, and is the data available on www.sports-reference.com?

Expected behavior Should return a Schedule object with current year's schedule, but returns a nonetype dataframe isntead

Desktop (please complete the following information):

Additional context The response is the same for past years

davidjkrause commented 9 months ago

Took a look at your issue. As with most recent issues here, these cases are resolved by my fork at https://github.com/davidjkrause/sportsipy

See my similar comment on most of the recent issues, this particular repo seems no longer maintained.

Following is what is returned using the fork mentioned above.

from sportsipy.nba.schedule import Schedule
Schedule('ATL')
Wed, Oct 25, 2023 - CHO
Fri, Oct 27, 2023 - NYK
Sun, Oct 29, 2023 - MIL
...