[GH-ISSUE #466] [FBref] Error while scraping Spain comps using read_team_match_stats #82

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

Originally created by @Szymok on GitHub (Jan 24, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/466

Hello everyone,

I want to use a read_team_match_stats() to scrape team match stats, but the scraping is ending with error:
Internal Server Error for url:
https://fbref.com/en/squads/8d6fd021/matchlogs/all_comps/shooting.

image

Correct url:
https://fbref.com/en/squads/8d6fd021/2023-2024/matchlogs/all_comps/shooting

So i think there is a problem with adding a seasong during building an url.

Originally created by @Szymok on GitHub (Jan 24, 2024). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/466 Hello everyone, I want to use a read_team_match_stats() to scrape team match stats, but the scraping is ending with error: Internal Server Error for url: https://fbref.com/en/squads/8d6fd021/matchlogs/all_comps/shooting. ![image](https://github.com/probberechts/soccerdata/assets/37596854/a8f3a697-4b43-49c6-9924-4783b517794d) Correct url: https://fbref.com/en/squads/8d6fd021/2023-2024/matchlogs/all_comps/shooting So i think there is a problem with adding a seasong during building an url.
kerem closed this issue 2026-03-02 15:55:38 +03:00
Author
Owner

@probberechts commented on GitHub (Jan 24, 2024):

This seems to work fine for me. It looks like this was fixed in #384. Are you sure you have the latest version?

import soccerdata as sd
fbref = sd.FBref("ESP-La Liga", 2324, no_cache=True)
fbref.read_team_match_stats('shooting')
<!-- gh-comment-id:1908936921 --> @probberechts commented on GitHub (Jan 24, 2024): This seems to work fine for me. It looks like this was fixed in #384. Are you sure you have the latest version? ```py import soccerdata as sd fbref = sd.FBref("ESP-La Liga", 2324, no_cache=True) fbref.read_team_match_stats('shooting') ```
Author
Owner

@Szymok commented on GitHub (Jan 24, 2024):

Yes you're right, my fault, sorry

<!-- gh-comment-id:1908976331 --> @Szymok commented on GitHub (Jan 24, 2024): Yes you're right, my fault, sorry
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#82
No description provided.