FantasyFootballAnalytics / ffanalytics

ffanalytics R package
http://ffanalytics.fantasyfootballanalytics.net/
163 stars 100 forks source link

Some Sources not working #47

Closed mrcaseb closed 4 years ago

mrcaseb commented 4 years ago

It appears some sources are not working.

Running

df <- scrape_data(src = c("CBS", "ESPN", "NFL"), "QB", 2019, 1) %>% as.data.frame()

leads to

> df <- scrape_data(src = c("CBS", "ESPN", "NFL"), "QB", 2019, 1) %>% as.data.frame()
Scraping QB projections from 
 https://www.cbssports.com/fantasy/football/stats/QB/2019/1/projections/nonppr 
Scraping QB projections from 

Scraping QB projections from 
 http://api.fantasy.nfl.com/v1/players/stats?statType=weekProjectedStats&season=2019&week=1&position=QB&format=json 
Fehler: `.x` is empty, and no `.init` supplied

I would like to scrape the NFL source so that's the critical part here. Any suggestions?

mrcaseb commented 4 years ago

Additional Session Infos

> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Catalina 10.15.4

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

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

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

other attached packages:
 [1] ffanalytics_2.0.2.0001 Hmisc_4.3-1            Formula_1.2-3         
 [4] survival_3.1-8         lattice_0.20-38        glue_1.3.2            
 [7] janitor_1.2.1          readxl_1.3.1           httr_1.4.1            
[10] rvest_0.3.5            xml2_1.2.5             forcats_0.5.0         
[13] stringr_1.4.0          dplyr_0.8.5            purrr_0.3.3           
[16] readr_1.3.1            tidyr_1.0.2            tibble_2.1.3          
[19] ggplot2_3.3.0          tidyverse_1.3.0       

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.4          lubridate_1.7.4     png_0.1-7           digest_0.6.25      
 [5] assertthat_0.2.1    packrat_0.5.0       R6_2.4.1            cellranger_1.1.0   
 [9] backports_1.1.5     acepack_1.4.1       reprex_0.3.0        pillar_1.4.3       
[13] rlang_0.4.5         curl_4.3            data.table_1.12.8   rstudioapi_0.11    
[17] rpart_4.1-15        Matrix_1.2-18       checkmate_2.0.0     splines_3.6.3      
[21] foreign_0.8-75      htmlwidgets_1.5.1   munsell_0.5.0       broom_0.5.5        
[25] xfun_0.12           compiler_3.6.3      modelr_0.1.6        pkgconfig_2.0.3    
[29] base64enc_0.1-3     htmltools_0.4.0     nnet_7.3-12         tidyselect_1.0.0   
[33] gridExtra_2.3       htmlTable_1.13.3    fansi_0.4.1         crayon_1.3.4       
[37] dbplyr_1.4.2        withr_2.1.2         grid_3.6.3          nlme_3.1-144       
[41] jsonlite_1.6.1      gtable_0.3.0        lifecycle_0.2.0     DBI_1.1.0          
[45] magrittr_1.5        scales_1.1.0        cli_2.0.2           stringi_1.4.6      
[49] fs_1.3.2            latticeExtra_0.6-29 ellipsis_0.3.0      generics_0.0.2     
[53] vctrs_0.2.4         RColorBrewer_1.1-2  tools_3.6.3         hms_0.5.3          
[57] jpeg_0.1-8.1        colorspace_1.4-1    cluster_2.1.0       knitr_1.28         
[61] haven_2.2.0