probberechts / soccerdata

⛏⚽ Scrape soccer data from Club Elo, ESPN, FBref, FiveThirtyEight, Football-Data.co.uk, FotMob, Sofascore, SoFIFA, Understat and WhoScored.
https://soccerdata.readthedocs.io/en/latest/
Other
526 stars 89 forks source link

[WoScored] HTTPError: Not Found #485

Closed kmicha03 closed 4 months ago

kmicha03 commented 4 months ago

I've been using the soccerdata package to scrape the schedule for each league, it was working fine until today which I got this error while trying to read the first schedule:

whoscored_name = "ENG-Premier League"

ws = sd.WhoScored(leagues=whoscored_name, seasons=2324, headless=False)

The error occurs here inside the whoscored.py file:

"""Initialize the WhoScored reader."""
        super().__init__(
            leagues=leagues,
            proxy=proxy,
            no_cache=no_cache,
            no_store=no_store,
            data_dir=data_dir,
            path_to_browser=path_to_browser,
            headless=headless,
        )

Any ideas? Thank you!

jbarrocal-str commented 4 months ago

I have the same error. Please can someone help us?

probberechts commented 4 months ago

undetected-chromedriver needs to get updated.

pip install --upgrade undetected-chromedriver