mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-26 10:35:53 +03:00
[GH-ISSUE #896] [FotMob] Schedule unable to be read #195
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @n1ck-s1m on GitHub (Nov 17, 2025).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/896
Describe the bug
Unable to scrape the schedule from FotMob. Produces a KeyError: 'matches' error.
Affected scrapers
This affects the following scrapers:
Code example
Error message
Additional context
Has worked for me many times in the past and I have changed nothing in my enviroment
Contributor Action Plan
@abroadnax commented on GitHub (Nov 17, 2025):
It looks like FotMob changed their JSON key from "matches" to "fixtures" which is causing the issue in the following line of read_schedule() within the FotMob.py file.
df = pd.json_normalize(season_data["matches"]["allMatches"])
I've tested it locally by switching "matches" to "fixtures" and it appears to work.
@n1ck-s1m commented on GitHub (Nov 18, 2025):
You are correct - I made the same change and it has worked for me locally also.
@liamrogan1 commented on GitHub (Nov 19, 2025):
Did they already change it? I just modified that line to say fixtures and still getting the same error
@n1ck-s1m commented on GitHub (Nov 19, 2025):
Try restarting your kernel/environment as the above change definitely works for me.
@joeninhoanalytics commented on GitHub (Dec 1, 2025):
Chanigng 'matches' to 'fixtures' works, but only for this season's data. Previous seasons still look to be using 'matches'. Has anyone found a patch that works for both historic and new data?