JaseZiv / worldfootballR

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

fotmob_get_league_matches() returns error #223

Closed FelixZhao123 closed 1 year ago

FelixZhao123 commented 1 year ago

The function fotmob_get_league_matches returns error mesages as below:

`> league_matches <- fotmob_get_league_matches(

would you please take a look into this? Thanks!

nikhil18jj commented 1 year ago

Same issue,all the fotmob functions don't work.

tonyelhabr commented 1 year ago

probably same as #209. please make sure you have the latest version of the package, which you can get with remotes::install_github("JaseZiv/worldfootballR").

library(worldfootballR)
packageVersion("worldfootballR")
#> [1] '0.6.1.9000'
league_matches <- fotmob_get_league_matches( 
  country =     c("ENG", "ESP"),
  league_name = c("Premier League", "LaLiga")
)
tail(league_matches)
#> # A tibble: 6 × 8
#>   month_key            round round_name page_url   id    home$…¹ away$…² statu…³
#>   <chr>                <int> <chr>      <chr>      <chr> <chr>   <chr>   <lgl>  
#> 1 Sunday, 04 June 2023    38 38         /match/39… 3918… Osasuna Girona  FALSE  
#> 2 Sunday, 04 June 2023    38 38         /match/39… 3918… Real B… Valenc… FALSE  
#> 3 Sunday, 04 June 2023    38 38         /match/39… 3918… Real M… Athlet… FALSE  
#> 4 Sunday, 04 June 2023    38 38         /match/39… 3918… Real S… Sevilla FALSE  
#> 5 Sunday, 04 June 2023    38 38         /match/39… 3918… Real V… Getafe  FALSE  
#> 6 Sunday, 04 June 2023    38 38         /match/39… 3918… Villar… Atleti… FALSE  
#> # … with 11 more variables: home$shortName <chr>, $id <chr>,
#> #   away$shortName <chr>, $id <chr>, status$started <lgl>, $cancelled <lgl>,
#> #   $scoreStr <chr>, $startDateStr <chr>, $startDateStrShort <chr>,
#> #   $reason <df[,2]>, $startTimeStr <chr>, and abbreviated variable names
#> #   ¹​home$name, ²​away$name, ³​status$finished
FelixZhao123 commented 1 year ago

Thanks! It worked after updating to latest version.