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 #298

Closed daanih85 closed 11 months ago

daanih85 commented 1 year ago

Hi!

It seems like Fotmob have changed things around as scraping player stats now looks like this:

Skjermbilde 2023-07-03 kl  19 14 17

Wondering if this is fixable?


library(worldfootballR)
packageVersion("worldfootballR")
[1] ‘0.6.3.7’

fotmob_matches <- c(3609994, 3610132)
players <- fotmob_get_match_players(fotmob_matches)
tonyelhabr commented 1 year ago

Ah yes, that looks like a data change on their end. I'm not sure I'll get to it this weekend, but maybe next week.

kidshiva commented 11 months ago

Hi both,

Just checked the merge fix for fotmob_get_match_players and it looks like there is an issue with the data

after a certain point in the nesting, the players data doesnt change for the player. i have attached a screenshot of what I am seeing, but it seems to be repeating the data for three or four players at a time rather than giving the individual players data

image

Using worldfootballR_0.6.3.0010

players <- fotmob_get_match_players(c(4074485))

heartsstats commented 11 months ago

Just found the same issue. Looks like there is an issue with players from the same team and having the same value in the position_row column having their stats values linked together in error.

tonyelhabr commented 11 months ago

being addressed with #303