[GH-ISSUE #558] [WhoScored] schedule scrapper works for prem but not for any other top 5 leagues #101

Closed
opened 2026-03-02 15:55:48 +03:00 by kerem · 3 comments
Owner

Originally created by @bradyjj on GitHub (Apr 26, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/558

I was able to successfully scrap the schedules for premier league using this:

ws = sd.WhoScored(leagues='ENG-Premier League', seasons=seasons, headless=False)

try:
    # Fetch the schedule
    schedule = ws.read_schedule()
    print("Fetched schedule:", schedule)

However, when I switch leagues to 'ESP-La Liga' and run script again I get this error as my exception: Error during processing: "None of ['league', 'season'] are in the columns" I also tried using 'FRA-Ligue 1', 'GER-Bundesliga', 'ITA-Serie A'

Originally created by @bradyjj on GitHub (Apr 26, 2024). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/558 I was able to successfully scrap the schedules for premier league using this: ``` ws = sd.WhoScored(leagues='ENG-Premier League', seasons=seasons, headless=False) try: # Fetch the schedule schedule = ws.read_schedule() print("Fetched schedule:", schedule) ``` However, when I switch leagues to 'ESP-La Liga' and run script again I get this error as my exception: Error during processing: "None of ['league', 'season'] are in the columns" I also tried using 'FRA-Ligue 1', 'GER-Bundesliga', 'ITA-Serie A'
kerem closed this issue 2026-03-02 15:55:48 +03:00
Author
Owner

@bradyjj commented on GitHub (Apr 26, 2024):

Also had issue using tor as suggested where the captcha kept failing.

<!-- gh-comment-id:2080225781 --> @bradyjj commented on GitHub (Apr 26, 2024): Also had issue using tor as suggested where the captcha kept failing.
Author
Owner

@probberechts commented on GitHub (Apr 28, 2024):

This could be related to #97.

Could you try with

ws = sd.WhoScored(leagues=league, seasons=seasons, no_cache=True)

Tor indeed does no longer work with Whoscored. I'll update the docs.

<!-- gh-comment-id:2081473117 --> @probberechts commented on GitHub (Apr 28, 2024): This could be related to #97. Could you try with ``` ws = sd.WhoScored(leagues=league, seasons=seasons, no_cache=True) ``` Tor indeed does no longer work with Whoscored. I'll update the docs.
Author
Owner

@bradyjj commented on GitHub (Apr 29, 2024):

Thank you, this worked!

<!-- gh-comment-id:2083794392 --> @bradyjj commented on GitHub (Apr 29, 2024): Thank you, this worked!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/soccerdata#101
No description provided.