mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 10:05:53 +03:00
[GH-ISSUE #193] [FBref] Not specifying leagues results in a 'Big 5 European Leagues Combined' KeyError #43
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#43
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 @Kalaweksh on GitHub (Mar 27, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/193
When an FBref object is initialized with the default leagues parameter, the titular error is thrown on calling FBref,read_schedule(). It looks like this is because the LEAGUE_DICT constant in _config.py does not have an entry by default for that key. Edit: Inserting 'Big 5 European Leagues' to LEAGUE_DICT prevents an error from being thrown, but results in the wrong table being scraped.
The error is not thrown when FBref is initialized with, for instance, a list of the big 5 instead of None.
@probberechts commented on GitHub (Mar 29, 2023):
This is the full error: