[GH-ISSUE #385] WhoScored Schedule, newest season not in list #71

Closed
opened 2026-03-02 15:55:31 +03:00 by kerem · 2 comments
Owner

Originally created by @aegonwolf on GitHub (Sep 27, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/385

Hi, whenever I try to add the newest season 23-24 in WhoScored I get the following error:

KeyError: "None of [MultiIndex([('ENG-Premier League', '2324')],\n           names=['league', 'season'])] are in the [index]"

Any of the initializations like:

ws = soccerdata.WhoScored(leagues=['ENG-Premier League'], seasons='2023', headless=True)
ws = soccerdata.WhoScored(leagues=['ENG-Premier League'], seasons='23-24', headless=True)

Return this error

previous seasons, i.e. switching to 2022 or 22-23 works fine.

Originally created by @aegonwolf on GitHub (Sep 27, 2023). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/385 Hi, whenever I try to add the newest season 23-24 in WhoScored I get the following error: ``` KeyError: "None of [MultiIndex([('ENG-Premier League', '2324')],\n names=['league', 'season'])] are in the [index]" ``` Any of the initializations like: ``` ws = soccerdata.WhoScored(leagues=['ENG-Premier League'], seasons='2023', headless=True) ws = soccerdata.WhoScored(leagues=['ENG-Premier League'], seasons='23-24', headless=True) ``` Return this error previous seasons, i.e. switching to `2022` or `22-23` works fine.
kerem 2026-03-02 15:55:31 +03:00
  • closed this issue
  • added the
    duplicate
    label
Author
Owner

@probberechts commented on GitHub (Sep 27, 2023):

See #97

<!-- gh-comment-id:1737052370 --> @probberechts commented on GitHub (Sep 27, 2023): See #97
Author
Owner

@aegonwolf commented on GitHub (Sep 27, 2023):

Thanks a lot! This worked

<!-- gh-comment-id:1737064318 --> @aegonwolf commented on GitHub (Sep 27, 2023): Thanks a lot! This worked
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#71
No description provided.