[GH-ISSUE #614] [WhoScored] Adding European Championship as custom league #115

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

Originally created by @yureed on GitHub (Jun 18, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/614

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

Originally created by @yureed on GitHub (Jun 18, 2024). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/614 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: ```json { "INT-Euros": { "WhoScored": "International-European-Championship" } } ``` The code also tells me that league_dict.json is loaded. Then I got the following error: ![image](https://github.com/probberechts/soccerdata/assets/41127970/92188fe9-1acc-4b42-b0e0-26a429c275df)
kerem 2026-03-02 15:55:55 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@probberechts commented on GitHub (Jun 18, 2024):

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.

<!-- gh-comment-id:2175974499 --> @probberechts commented on GitHub (Jun 18, 2024): 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](https://github.com/probberechts/soccerdata/releases/tag/v1.8.0) for details.
Author
Owner

@yureed commented on GitHub (Jun 18, 2024):

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!!

<!-- gh-comment-id:2175995199 --> @yureed commented on GitHub (Jun 18, 2024): 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!!
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#115
No description provided.