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

fotmob_get_league_matches gets HTTP error 404 #108

Closed QuantQB8 closed 2 years ago

QuantQB8 commented 2 years ago

Hello!

When trying to fetch info from the function fotmob_get_league_matches(), it throws the following error

Error in open.connection(con, "rb") : HTTP error 404

I try to use the functions as they are in the vignette but I still have the same error:

My R Session is the following

R version 4.1.3 (2022-03-10) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Monterey 12.3.1

Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages: [1] stats graphics grDevices utils datasets [6] methods base

other attached packages: [1] tidyr_1.2.0 worldfootballR_0.5.1.1000

loaded via a namespace (and not attached): [1] rstudioapi_0.13 xml2_1.3.3 janitor_2.1.0
[4] magrittr_2.0.3 hms_1.1.1 rvest_1.0.2
[7] tidyselect_1.1.2 R6_2.5.1 rlang_1.0.2
[10] fansi_1.0.3 httr_1.4.2 stringr_1.4.0
[13] dplyr_1.0.8 tools_4.1.3 utf8_1.2.2
[16] cli_3.2.0 DBI_1.1.2 ellipsis_0.3.2
[19] assertthat_0.2.1 tibble_3.1.6 lifecycle_1.0.1 [22] crayon_1.5.1 tzdb_0.3.0 readr_2.1.2
[25] purrr_0.3.4 vctrs_0.4.0 curl_4.3.2
[28] glue_1.6.2 snakecase_0.11.0 stringi_1.7.6
[31] compiler_4.1.3 pillar_1.7.0 generics_0.1.2
[34] jsonlite_1.8.0 lubridate_1.8.0 pkgconfig_2.0.3

Thanks a lot!! Great package

JaseZiv commented 2 years ago

Hi there,

Are you still experiencing this issue? There have been two very recent updates that might have addressed the issues you're having.

Make sure you're up-to-date with the library (v 0.5.1.3000) by installing the dev version using:

devtools::install_github("JaseZiv/worldfootballR")
QuantQB8 commented 2 years ago

It works! Thanks!