[GH-ISSUE #906] [FotMob] KeyError 'matches' on read_schedule() #197

Closed
opened 2026-03-02 15:56:35 +03:00 by kerem · 1 comment
Owner

Originally created by @d151 on GitHub (Dec 10, 2025).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/906

Describe the bug
The FotMob Scraper returns a KeyError: 'matches' on read_schedule().

Affected scrapers

  • FotMob

Code example

import soccerdata as sd
fotmob = sd.FotMob(leagues="ENG-Premier League", seasons="24/25", no_cache=True)
fotmob.read_schedule()

Error message

/soccerdata/fotmob.py", line 298, in read_schedule
df = pd.json_normalize(season_data["matches"]["allMatches"])
KeyError: 'matches'

Additional context
Key needs to be changed to "fixtures"

Contributor Action Plan

  • I can fix this issue and will submit a pull request.
Originally created by @d151 on GitHub (Dec 10, 2025). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/906 **Describe the bug** The FotMob Scraper returns a KeyError: 'matches' on read_schedule(). **Affected scrapers** - [x] FotMob **Code example** ```python import soccerdata as sd fotmob = sd.FotMob(leagues="ENG-Premier League", seasons="24/25", no_cache=True) fotmob.read_schedule() ``` **Error message** ``` /soccerdata/fotmob.py", line 298, in read_schedule df = pd.json_normalize(season_data["matches"]["allMatches"]) KeyError: 'matches' ``` **Additional context** Key needs to be changed to "fixtures" **Contributor Action Plan** - [x] I can fix this issue and will submit a pull request.
kerem 2026-03-02 15:56:35 +03:00
Author
Owner

@d151 commented on GitHub (Dec 10, 2025):

Just saw that there's already an open PR for this that failed to merge

<!-- gh-comment-id:3638475630 --> @d151 commented on GitHub (Dec 10, 2025): Just saw that there's already an open PR for this that failed to merge
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#197
No description provided.