mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-25 18:15:58 +03:00
[GH-ISSUE #80] [General] Problem when adding new leagues with league_dict.json #17
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#17
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 @francescozonaro on GitHub (Sep 15, 2022).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/80
I'm having problems adding leagues with the league_dict.json file. Tried with MLS, not working. Tried with the default example provided in the docs, not working.
Spotted a missing ',' after the "WhoScored" variable, tried adding that, still not working.
When I try to execute
ws = sd.WhoScored(leagues="NED-Eredivisie", seasons=2022, headless=False)this appears in console
so for what I can understand, it doesn't properly add the new league to the list of available leagues. I tried to modify the _config.py file too, adding the league directly to the LEAGUE_DICT var, but wasn't able to solve the issue.
EDIT: closing and reopening the editor with the configuration added directly in the LEAGUE_DICT var fixed it. Still not able to use the league_dict.json file but its probably an error on my end