-
Notifications
You must be signed in to change notification settings - Fork 108
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
[General] Update cached seasons #97
Labels
enhancement
New feature or request
Comments
probberechts
changed the title
[WhoScored] Update cached seasons
[General] Update cached seasons
Jan 8, 2023
Kalaweksh
added a commit
to Kalaweksh/soccerdata
that referenced
this issue
Apr 6, 2024
- Reduce unnecessary scraping by attempting to read previous seasons from cache. Like probberechts#97 , this can be problematic at season start (in this case if a previous season hasn't been fully cached). - Keep consistency with other FBref methods
probberechts
pushed a commit
that referenced
this issue
Apr 12, 2024
- Reduce unnecessary scraping by attempting to read previous seasons from cache. Like #97 , this can be problematic at season start (in this case if a previous season hasn't been fully cached). - Keep consistency with other FBref methods
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The scrapers cache the result of
read_seasons()
. Therefore, users might get aKeyError: ['<season>'] not in index
if they forget to empty the cache when new seasons become available. A proper exception should be raised in such a case with a hint to empty the cache.The text was updated successfully, but these errors were encountered: