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
511 stars 87 forks source link

[WhoScored] Adding European Championship as custom league #614

Closed yureed closed 1 week ago

yureed commented 1 week ago

Hello, I tried adding a custom league for Euros. According to the JS Console, the competition is called 'International-European-Championship'. I added the custom league like the following:

{
  "INT-Euros": {
    "WhoScored": "International-European-Championship"

  }
}

The code also tells me that league_dict.json is loaded. Then I got the following error: image

probberechts commented 1 week ago

The correct league name is "International - European Championship" (note the spaces and hyphens). Also, note that the EUROs were added to the default supported leagues in version 1.8. See the release notes for details.

yureed commented 1 week ago

I wasn't aware it was in the default supported leagues. Forgot to check release notes. It works now. Thank you so much for your help!!