Getting an error pulling games on 2/24/22 when using the code below. Error says 404, but when I go to the URL it opens fine. All other dates seem to work ok.
The code increments day by day to pull back data using the variable "date_string". I'm invoking using SAS JMP so the formatting is not like R but the commands work the same.
Any thoughts on why I'm always hanging up on 2/24? Weird.
R Submit( "rm(pbp_games)" );
R Submit( "rm(pbp_data)" );
R Submit( "pbp_games <- get_master_schedule('" || date_string || "')" );
R Submit( "pbp_data <- get_pbp_game(pbp_games[,1])" );
R Submit( "write.table(as.matrix(pbp_data),file = '" || date_string || ".csv', sep = ';', row.names=FALSE)" );
OK so it failed overnight last night as well as the last two times I ran it a bit ago and just now it ran and finished. Weird. Maybe ESPN is doing something behind the scenes. You can probably close this.
Getting an error pulling games on 2/24/22 when using the code below. Error says 404, but when I go to the URL it opens fine. All other dates seem to work ok.
The code increments day by day to pull back data using the variable "date_string". I'm invoking using SAS JMP so the formatting is not like R but the commands work the same.
Any thoughts on why I'm always hanging up on 2/24? Weird.