maksimhorowitz / nflscrapR

R Package for Scraping and Aggregating NFL Data
522 stars 139 forks source link

Error while getting rosters #127

Open KRONWALLED1134 opened 4 years ago

KRONWALLED1134 commented 4 years ago

When getting rosters for 2018 this happens

Loading required package: nnet Loading required package: magrittr Extracting QUARTERBACK Error in file(con, "r") : cannot open the connection to 'http://www.nfl.com/players/taylorheinicke/profile?id=HEI610185' Calls: scrapeRosterData ... <Anonymous> -> .f -> freduce -> <Anonymous> -> readLines -> file In addition: Warning message: In file(con, "r") : cannot open URL 'http://www.nfl.com/player/taylorheinicke/2553656/profile': HTTP status was '404 Not Found' Execution halted

The page is in fact not there anymore as Heinicke dropped out of the NFL but it seems he still appears on other pages.

Thanks for this wonderful tool btw :)