pagespeedParseR
pagespeedParseR copied to clipboard
API connector fails
Hello.
I've been trying to connect from RStudio but it fails somehow.
My code looks like this:
I've created the API key and the key works when I connect from Screaming Frog.
But the console returns this:
Can you please help?
Just in case this could be useful, I found a temporary fix for this issue :
- After loading the package, run the following command :
trace("auth_pagespeed", edit=TRUE)
- Then, an editor should open where you need to replace the following command line
[url](https://rdrr.io/r/base/connections.html) = "https://www.googleapis.com/pagespeedonline/v4/runPagespeed",
- by
[url](https://rdrr.io/r/base/connections.html) = "https://www.googleapis.com/pagespeedonline/v5/runPagespeed",`
In fact, you simply need to replace "v4" by "v5".
Hope this helps.