Skip to content

[FotMob] KeyError 'matches' on read_schedule() #906

@d151

Description

@d151

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FotMobIssue or pull request related to the FotMob scraperbugSomething isn't workingduplicateThis issue or pull request already exists

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions