-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Teams() giving http error #464
Comments
from sportsreference.nba.teams import Teams teams = Teams() gives an http error - "HTTPError: HTTP Error 404: Not Found" When trying to get the schedule for 'BKN', 'CHA', 'PHX' I get the same http error |
Try this for teams teams = Teams(year=2020) For the schedules, the abbreviations you're using I don't believe are correct. Try, BRK, CHO, and PHO. |
Thank you so much! |
Hey @arun1125, thanks for filing this issue! Apologies for not getting to this sooner. Sadly, it looks like this is a result of the continued pandemic as the delays in the NBA season have caused the logic used in the default season selector invalid, as the package assumes the 2021 season should be getting ready to begin at this point. @scaratozzolo gave an awesome workaround in the meantime (thanks Scott!!!) which looks like it is working for you, but I am finalizing a patch that handles the logic for this scenario and will push it out shortly. Thank you both for working together to identify the issue and find a workaround! I will close this issues once everything works as expected and the original functionality is restored, ie: from sportsreference.nba.teams import Teams
teams = Teams() |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Sample code which causes an issue.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here. If applicable, also include links to any pages on www.sports-reference.com that are believed to be causing this issue.
The text was updated successfully, but these errors were encountered: