Closed QuantQB8 closed 2 years ago
I might be wrong, but non-domestic leagues might not be supported.
Is that correct @tonyelhabr?
See #112. This is a bug. I added a test for a non-domestic match so hopefully we will be alarmed to things like this in the future.
fotmob_get_match_players(3846347)
# A tibble: 46 x 32
match_id team_id team_name id using_opta_id first_name last_name image_url page_url shirt is_home_team time_subbed_on
<int> <int> <chr> <chr> <lgl> <chr> <chr> <chr> <chr> <chr> <lgl> <int>
1 3846347 9772 Benfica 304355 FALSE "Odisseas" Vlachodi~ https://~ /player~ 99 TRUE NA
2 3846347 9772 Benfica 387499 FALSE "Gilberto" Junior https://~ /player~ 2 TRUE NA
3 3846347 9772 Benfica 174321 FALSE "Nicolas" Otamendi https://~ /player~ 30 TRUE NA
4 3846347 9772 Benfica 37762 FALSE "Jan" Vertongh~ https://~ /player~ 5 TRUE NA
5 3846347 9772 Benfica 288406 FALSE "Alex" Grimaldo https://~ /player~ 3 TRUE NA
6 3846347 9772 Benfica 477023 FALSE "Rafa" Silva https://~ /player~ 27 TRUE NA
7 3846347 9772 Benfica 47394 FALSE "Adel" Taarabt https://~ /player~ 49 TRUE NA
8 3846347 9772 Benfica 521421 FALSE "Julian" Weigl https://~ /player~ 28 TRUE NA
9 3846347 9772 Benfica 528348 FALSE "" Éverton https://~ /player~ 7 TRUE NA
10 3846347 9772 Benfica 940087 FALSE "Goncalo" Ramos https://~ /player~ 88 TRUE NA
# ... with 36 more rows, and 20 more variables: 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 <df[,38]>, shotmap <list>, is_starter <lgl>
Hi!
If I understood, you said that this is a known bug but in the future maybe can be fixed? Or in this last version worldfootballR_0.5.1.4000
was fixed?
If the last is correct, then I still can't scrap data from the example you said @tonyelhabr.
As always, thanks a lot!
Hi! If I understood, you said that this is a known bug but in the future maybe can be fixed? Or in this last version
worldfootballR_0.5.1.4000
was fixed? If the last is correct, then I still can't scrap data from the example you said @tonyelhabr.As always, thanks a lot!
Oh, it wasn't a known bug before, so thank you for pointing this out! It won't be fixed until the #112 PR is merged, which also bumps the package version to 0.5.1.5000
.
If you're very anxious to try it out, I think you might be able to do it by installing the new version as follows.
remotes::install_github("JaseZiv/worldfootballR@f7f3ac99203b0503943164a2821845588595190c")
although I haven't tested it out
This should now be resolved as Tony mentioned in version 0.5.1.5000
.
Install it using devtools::install_github("JaseZiv/worldfootballR")
Feel free to open another issue if you're still finding problems.
Thanks
Hi again!
I'm trying to webscrap data from distinct leagues and all is ok until i try to scrap data for champions league matches. For example, I can see the match for Liverpool-Benfica with
fotmob_get_matches_by_date("20220405")
, but when fetching data from itsmatch_id = 3846347
infotmob_get_match_players(3846347)
it returns an empty dataframe (it happens for all champions league matches, but for the other leagues is ok!).I downloaded the last dev package of worldfootballR. My R session is:
Thanks a lot again! Regards