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_match_players not bringing through data #288

Closed Lano-23 closed 1 year ago

Lano-23 commented 1 year ago

I'm unable to get data back from the "fotmob_get_match_players" function which was previously working. Has something changed with the fotmob website?

e.g. Match_Player_Stats = fotmob_get_match_players(4074401)

Many thanks

Paul

gitboyzorro5 commented 1 year ago

Me too am experiencing same problem...is there a major change @JaseZiv and @tonyelhabr?

mbrownsword commented 1 year ago

i am also having this issue

tonyelhabr commented 1 year ago

Please make sure that you're on the latest version of the package (which can be installed with remotes::install_github("JaseZiv/worldfootballR")).

library(worldfootballR)
packageVersion('worldfootballR')
#> [1] '0.6.3.6'
match_player_stats <- fotmob_get_match_players(4074401)
match_player_stats
#> # A tibble: 39 × 73
#>    match_id team_id team_n…¹ id    using…² first…³ last_…⁴ image…⁵ page_…⁶ shirt
#>       <int>   <int> <chr>    <chr> <lgl>   <chr>   <chr>   <chr>   <chr>   <chr>
#>  1  4074401    9892 Kalmar … 6369… FALSE   Ricardo Friedr… https:… /playe… 1    
#>  2  4074401    9892 Kalmar … 9322… FALSE   Axel    Lindahl https:… /playe… 2    
#>  3  4074401    9892 Kalmar … 1726… FALSE   Lars    Sætra   https:… /playe… 39   
#>  4  4074401    9892 Kalmar … 2912… FALSE   Rasmus  Sjöste… https:… /playe… 6    
#>  5  4074401    9892 Kalmar … 5406… FALSE   David … Olafss… https:… /playe… 3    
#>  6  4074401    9892 Kalmar … 1775… FALSE   Romari… Sipiao  https:… /playe… 29   
#>  7  4074401    9892 Kalmar … 1069… FALSE   Carl    Gustaf… https:… /playe… 17   
#>  8  4074401    9892 Kalmar … 7743… FALSE   Nahom … Netabay https:… /playe… 22   
#>  9  4074401    9892 Kalmar … 2614… FALSE   Simon   Skrabb  https:… /playe… 11   
#> 10  4074401    9892 Kalmar … 9604… FALSE   Mileta  Rajovic https:… /playe… 9    
#> # … with 29 more rows, 63 more variables: is_home_team <lgl>,
#> #   time_subbed_on <int>, time_subbed_off <int>, usual_position <int>,
#> #   position_row <int>, role <chr>, is_captain <lgl>, subbed_out <int>,
#> #   g <int>, rating_num <chr>, rating_bgcolor <chr>, is_top_rating <lgl>,
#> #   is_match_finished <lgl>, fantasy_score_num <chr>,
#> #   fantasy_score_bgcolor <chr>, home_team_id <int>, home_team_color <chr>,
#> #   away_team_id <int>, away_team_color <chr>, stats_fot_mob_rating <chr>, …
gitboyzorro5 commented 1 year ago

Thanks @tonyelhabr it seems to be working using your instructions.

Lano-23 commented 1 year ago

Thanks @tonyelhabr for the instructions, working now after updating and updating other packages :-)