I've created a google spreadsheet that periodically retrieves data from a certain webpage and it worked perfectly for about a month. However, after the day before yesterday (19/08) it is suddenly giving the "Could not fetch URL" error for both the importxml() and importhtml(), even though the website itself still loads without issues when using a browser. In the mean time, nothing has been changed on the spreadsheet, apart from that it's been distributed to other people.
The spreadsheet (Naturally, you're free to make a copy of it; it concerns cells H1 and A2)
Solutions I've tried:
- Google script's Urlfetchapp(); it seems to be able to fetch the webpage without issues (but without the ease of formatting that importhtml has built-in)
- Included trim() within the importhtml to remove any potential spaces within the url
- Attempted multiple other subdomains of sfstat.info (such as sfstat.info/na/pantheons/); all webpages of sfstat.info seem to give the same error.
- Attempted to fetch other URL's such as Google etc. These are fetched without issues
- Excel its equivalent of importhtml. This also seems to work without problems.
- While the spreadsheet technically adds &minute(now()) to the url, removing this does not resolve the "Could not fetch URL" issue either.
- Downloaded & hosted the webpage on Google drive and attempted to fetch it's data using importhtml & importxml; this also did not result in issues. It might thus be that the fetch is seen as a DoS attempt due to the multitude of requests.
Thank you in advance.