probberechts / soccerdata

⛏⚽ Scrape soccer data from Club Elo, ESPN, FBref, FiveThirtyEight, Football-Data.co.uk, FotMob, Sofascore, SoFIFA, Understat and WhoScored.
https://soccerdata.readthedocs.io/en/latest/
Other
607 stars 104 forks source link

WhoScored Schedule, newest season not in list #385

Closed aegonwolf closed 1 year ago

aegonwolf commented 1 year ago

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.

probberechts commented 1 year ago

See #97

aegonwolf commented 1 year ago

Thanks a lot! This worked