mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-26 02:25:51 +03:00
[GH-ISSUE #218] Trouble season 2020 for Série A and MLS #44
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sammekristensen on GitHub (Apr 21, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/218
I am trying to get the stats, specifically player season stats for various leagues including Brasilian Série A and MLS. I have implemented the leagues and everything is working except for the season 2020 (the 20-21 season) for these leagues. I have tried every combination of input for the season; '2020', '20-21', '2020-21', '20' but they either give me the wrong season or error:
When i print out fbref.read_seasons() with Major League Soccer i get:
It looks like there is no link for season 2020. Is there a way I can add it do the scripts?
@probberechts commented on GitHub (Apr 21, 2023):
This is because FBref uses a different kind of season code for the MLS and Brasilian Serie A. For the Premier League, the current season is "2022-2023". For the MLS it is "2023". As none of the default-supported leagues use this kind of season code, I did not implement a parser for it. You'll have to adapt the
season_codemethod in_common.py.I'll close this issue, as it is about scraping leagues that are not officially supported. Nevertheless, if you have a fix feel free to create a pull request.