ryurko / fcscrapR

R package to scrape soccer commentary and statistics from ESPN
28 stars 11 forks source link

Can't scrape a full league season #7

Open ArmstrongA opened 5 years ago

ArmstrongA commented 5 years ago

Hi Ron, Thanks for presenting your good project to us. I'm trying to scrape an entire league, based on a season--Say for example the EPL started on 11th of August 2018. When I try to run:

library(fcscrapR) scrape_scoreboard_ids(scoreboard_name = "english premier league", game_date = "2018-08-11") I only get a few matches and not all matches from that date to current date.

Can you please help me to scrape an entire season (or period)?

Again. Thanks for your work!

Armstrong

ryurko commented 5 years ago

Thanks for posting this, I can add this functionality to the package. One could apply the function to a vector a dates to return all games during those periods. I'll try to come up with a clean solution when I have time.

ArmstrongA commented 5 years ago

Thanks for your response. I'm looking forward to that. I would like to have data for each match in csv's then I can wrangle it to obtain quality information to feed a prediction model. I'm also working on wrangling some of the matches, perhaps I can be able to show you what I have obtained for your comment and advise.