[GH-ISSUE #715] [WhoScored] Error with 3 leagues in read_schedule #156

Open
opened 2026-03-02 15:56:14 +03:00 by kerem · 1 comment
Owner

Originally created by @fmartinmora on GitHub (Oct 9, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/715

Describe the bug
Problem to get FA Cup and INT-UEFA Nations League A and B

Affected scrapers
WhoScored

Code example

seasons = list(range(2018, 2025))
ws = sd.WhoScored(leagues="INT-UEFA Nations League B", seasons=seasons)

# in _config.py 

"INT-UEFA Nations League B": {
        "WhoScored": "International - UEFA Nations League B",
    },

Error message

KeyError: "[('INT-UEFA Nations League B', '1920'), ('INT-UEFA Nations League B', '2324')] not in index"

Contributor Action Plan

  • I can fix this issue and will submit a pull request.
  • I’m unsure how to fix this, but I'm willing to work on it with guidance.
  • I’m not able to fix this issue.
Originally created by @fmartinmora on GitHub (Oct 9, 2024). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/715 **Describe the bug** Problem to get FA Cup and INT-UEFA Nations League A and B **Affected scrapers** WhoScored **Code example** ```python seasons = list(range(2018, 2025)) ws = sd.WhoScored(leagues="INT-UEFA Nations League B", seasons=seasons) # in _config.py "INT-UEFA Nations League B": { "WhoScored": "International - UEFA Nations League B", }, ``` **Error message** ``` KeyError: "[('INT-UEFA Nations League B', '1920'), ('INT-UEFA Nations League B', '2324')] not in index" ``` **Contributor Action Plan** - [ ] I can fix this issue and will submit a pull request. - [ ] I’m unsure how to fix this, but I'm willing to work on it with guidance. - [ ] I’m not able to fix this issue.
Author
Owner

@probberechts commented on GitHub (Oct 10, 2024):

None of these leagues are supported. Feel free to create a PR if you have a fix, but I will not work on this myself.

<!-- gh-comment-id:2405420861 --> @probberechts commented on GitHub (Oct 10, 2024): None of these leagues are supported. Feel free to create a PR if you have a fix, but I will not work on this myself.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/soccerdata#156
No description provided.