Skip to content

[WhoScored] ValueError: time data 'Aug' does not match format '%b' #909

@salvassc

Description

@salvassc

Describe the bug
With Python version 3.10.11 and soccerdata library version 1.8.7, I get the error "ValueError: time data 'Aug' does not match format '%b'" when executing calls to some functions

Affected scrapers
This affects the following scrapers:

  • ClubElo
  • ESPN
  • FBref
  • FiveThirtyEight
  • FotMob
  • Match History
  • SoFIFA
  • Understat
  • WhoScored

Code example

whoscored = sd.WhoScored()

ws = sd.WhoScored(leagues="ENG-Premier League", seasons=2021)

epl_schedule = ws.read_schedule()
epl_schedule.head()

# Injured and suspended players
missing_players = ws.read_missing_players(match_id=1485184)
missing_players.head()

Error message

ValueError: time data 'Aug' does not match format '%b'

Metadata

Metadata

Assignees

No one assigned

    Labels

    WhoScoredIssue or pull request related to the WhoScored scraperbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions