JaseZiv / worldfootballR

A wrapper for extracting world football (soccer) data from FBref, Transfermark, Understat
https://jaseziv.github.io/worldfootballR/
444 stars 60 forks source link

get_season_team_stats() not working for PL, LaLiga and Bundesliga 2020/21 anymore #48

Closed ChrisH1997 closed 2 years ago

ChrisH1997 commented 2 years ago

get_season_team_stats(c("ENG", "ESP", "ITA", "GER", "FRA"), "M", c(2018:2021), "1st", "standard") used to work for all categories. Now it says Scraping season standard stats NOTE: Stat Type 'standard' is not found for this league season. Check https://fbref.com/en/comps/9/Premier-League-Stats to see if it exists. NOTE: Stat Type 'standard' is not found for this league season. Check https://fbref.com/en/comps/12/La-Liga-Stats to see if it exists. NOTE: Stat Type 'standard' is not found for this league season. Check https://fbref.com/en/comps/20/Bundesliga-Stats to see if it exists. The result includes all four seasons for Ligue 1 and Serie A, but only 2018-2020 for PL, LaLiga and BL.

JaseZiv commented 2 years ago

Thanks for bringing this one up.

This has been fixed now - it was caused by the new seasons about to start getting a new URL structure on fbref.

Reach out if the issue persists.

ChrisH1997 commented 2 years ago

Hey, it seems as if now the same happened for Serie A season 2020/21.

JaseZiv commented 2 years ago

@ChrisH1997 Just pushed a new version of the seasons/leagues metadata this package uses and it should fix the Serie A issue you're having.

Reach out if this isn't the case.

Thanks again