robjhyndman / cricketdata

International cricket data for men and women, Tests, ODIs and T20s
http://pkg.robjhyndman.com/cricketdata/
78 stars 21 forks source link

Function taking long time to run #35

Open adisrir opened 7 months ago

adisrir commented 7 months ago

I am trying to run this simple function in R:

wt20 <- fetch_cricinfo("T20", "Women", "Bowling")

However, the run time is taking very long. Is there an issue internally?

robjhyndman commented 7 months ago

I believe that cricinfo is preventing the package from accessing the website.

adisrir commented 7 months ago

Is this an issue that can be fixed or would we have to wait for cricinfo to give permission?

robjhyndman commented 7 months ago

I asked cricinfo for permission several years ago, and could not get anyone to respond. Now they appear to have blocked web scraping such as that used by the cricketdata package. I'm pessimistic that cricinfo will allow this in the future. We probably need to find some other way to get the data. There are other websites such as howstat.com which are more friendly to data analysts, but they only contain male data, unfortunately. If I can think of a way to use cricinfo without hitting the block, I will update the package.