Closed paulcbauer closed 1 year ago
Hi @paulcbauer I was wondering if you got this to work? I'm in the exact same position re research project and was hoping to solve the 407 issues
Hi @tom-parkinson, in the end we didn't and then spread out the calls over time. Not ideal though. You could try out different commercial proxies (e.g., smartproxy, rayobyte, etc.).
Hi, we are using gtrendsR for a research project and would like to run a few thousand queries within a few hours, as the analysis is very fine-grained. To make this work, we want to use residential proxies of a proxy service (the provider has us whitelisted for research purposes).
Setting the proxy in R via Sys.setenv works well (it rotates through IPs), but when running gtrendsR we get an HTTP error code 407:
“Error in curl::curl_fetch_memory(url, handle = .pkgenv[["cookie_handler"]]) : Received HTTP code 407 from proxy after CONNECT”
We also tried to insert the proxy parameters into the setHandleParameters() function, which didn't work either.
Here's our code:
Any help would be greatly appreciated. Thanks!