Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Scrape function error with Minor League Data #25
This has been driving me crazy for the last few days and I can't figure why it continues to fail. Every single time I try to run the scrape function it comes up with this error:
If file names don't print right away, please be patient.
I tried following your post on nonMLBdata and only tweaked it for import into a MySQL database. I shut off my laptop and router firewall for a short period of time to test it and it still returned the same error.
this is my main initial code:
attached base packages:
other attached packages:
loaded via a namespace (and not attached):
I really need help with this.
Ah, I'm pretty sure this is happening because "inning/inning_all.xml" files don't exist for most (if not all) minor league games. The other file types should work though. For example,
x <- head(nonMLBgids) files <- c("inning/inning_hit.xml", "miniscoreboard.xml", "players.xml") dat <- scrape(game.ids = x, suffix = files)
I don't have time now, but hopefully in the next few months I'll make some modifications to grab "inning_[0-9].xml" files when "inning_all.xml" doesn't exist (for example)