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

NCAAB box score list index out if range #652

Open
tarik0219 opened this issue Aug 31, 2021 · 4 comments
Open

NCAAB box score list index out if range #652

tarik0219 opened this issue Aug 31, 2021 · 4 comments

Comments

@tarik0219
Copy link

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

@brandonbrown122
Copy link

I am also having this problem. Have you found a solution?

@fmathews11
Copy link

I'm also having this issue!

@lucas-nelson-uiuc
Copy link

Same issue here :')

@joshbliss
Copy link

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

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

Successfully merging a pull request may close this issue.

5 participants