mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-26 02:25:51 +03:00
[GH-ISSUE #169] [WhoScored] The current season's schedule is not cached #41
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @guilherme-95 on GitHub (Mar 2, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/169
I'm facing the following issue when trying to scrape game data for the 22-23 season - when I ask ws.read_events to return data from a list of game IDs in the 21-22 season, it will scrape the schedule once and move on to getting the game data. If I do it for the 22-23 season, it starts scraping the schedule for every game_id I want data from.
It doesn't matter if I point to the schedule file in /soccerdata/data/WhoScored/matches or if I build a new file using ws.read_schedule
The code I'm running is below:
I apologize if this is an error on my end, I'm not very experienced with python.
@probberechts commented on GitHub (Mar 2, 2023):
This is supposed to be a feature. By default, the scraper assumes that the cache is outdated for the current season. If you are sure that the cache is up to date, you can force the scraper to use the cached schedule by setting the
force_cacheparameter to true.@guilherme-95 commented on GitHub (Mar 2, 2023):
thank you very much for the information
@guilherme-95 commented on GitHub (Mar 2, 2023):
Sorry, forgot to close the issue.