Skip to content
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

play_by_play #84

Open
bkunbargi opened this issue Jun 8, 2022 · 0 comments
Open

play_by_play #84

bkunbargi opened this issue Jun 8, 2022 · 0 comments

Comments

@bkunbargi
Copy link

play_by_play returns an error when trying the replit example in documentation
full stack trace below

Traceback (most recent call last):
File "main.py", line 6, in
print(client.play_by_play(home_team=Team.BOSTON_CELTICS, year=2018, month=10, day=16))
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/basketball_reference_web_scraper/client.py", line 220, in play_by_play
values = http_service.play_by_play(home_team=home_team, day=day, month=month, year=year)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/basketball_reference_web_scraper/http_service.py", line 106, in play_by_play
away_team_name=page.away_team_name,
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/basketball_reference_web_scraper/html.py", line 791, in away_team_name
return self.team_names[0]
IndexError: list index out of range

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant