-
Notifications
You must be signed in to change notification settings - Fork 224
Closed
Labels
FotMobIssue or pull request related to the FotMob scraperIssue or pull request related to the FotMob scraperbugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists
Description
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
Labels
FotMobIssue or pull request related to the FotMob scraperIssue or pull request related to the FotMob scraperbugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already exists