[GH-ISSUE #342] [WhoScored] Error for 23-24 season #64

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

Originally created by @clairesecehDS on GitHub (Aug 29, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/342

Hi all,

I'm trying to scrap the 2023/2024 season data on whoscored and I have this issue:

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

Any idea how to resolve that?

Thanks!

Originally created by @clairesecehDS on GitHub (Aug 29, 2023). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/342 Hi all, I'm trying to scrap the 2023/2024 season data on whoscored and I have this issue: ``` KeyError: None of [MultiIndex([('ENG-Premier League', '2324')], names=['league', 'season'])] are in the [index] ``` Any idea how to resolve that? Thanks!
kerem closed this issue 2026-03-02 15:55:28 +03:00
Author
Owner

@probberechts commented on GitHub (Aug 29, 2023):

This is probably related to #97 and can be solved by invalidating the cache:

import soccerdata as sd
ws = sd.WhoScored(leagues='ENG-Premier League', seasons='2023-24', no_cache=True)
ws.read_schedule()
<!-- gh-comment-id:1697132672 --> @probberechts commented on GitHub (Aug 29, 2023): This is probably related to #97 and can be solved by invalidating the cache: ```py import soccerdata as sd ws = sd.WhoScored(leagues='ENG-Premier League', seasons='2023-24', no_cache=True) ws.read_schedule() ```
Author
Owner

@clairesecehDS commented on GitHub (Aug 29, 2023):

That works fine! Thanks for your very fast answer!

<!-- gh-comment-id:1697138829 --> @clairesecehDS commented on GitHub (Aug 29, 2023): That works fine! Thanks for your very fast answer!
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#64
No description provided.