-
Notifications
You must be signed in to change notification settings - Fork 195
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
NCAAB box score list index out if range #652
Comments
I am also having this problem. Have you found a solution? |
I'm also having this issue! |
Same issue here :') |
Just had this issue as well, it appears that any 2021 boxscores have different HTML than previous seasons at least from looking at it myself. If you look at the API, def _parse_record(self, field, boxscore, index) in boxscore.py tries to return the records of the teams that played but it isn't able to find any records from the PyQuery object, so there is an empty list that it is trying to index (at least this is where mine gets stuck). If you don't need the records, you can edit this function locally as a temporary fix, the path for me on linux is: /home/insertUsernameHere/.local/lib/python3.8/site-packages/sportsipy/ncaab/boxscore.py |
from sportsipy.ncaab.boxscore import Boxscore
Boxscore('2021-04-03-17-baylor')
Gettting an error for list index out of range when trying to get the boxscore of games for the 2021 season.
https://www.sports-reference.com/cbb/boxscores/2021-04-03-17-baylor.html
Here is an example of the box score that I want to pull
The text was updated successfully, but these errors were encountered: