-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generalize onlyInterest #439
Comments
A request is still a request, even if you ask for fewer (sub-)results. The only way to have few requests is too ... make fewer requests. It's a free api. It runs on their rules. |
If I understand the function and the API, there is at least one request for each outcome, isn't it ? More precisely, there is one request everytime the function
If this is the case, then following my previous example, if we are not interested in the related topics and queries, we could avoid doing requests for these two outcomes. Is this correct or did I misunderstand how the functions work ? |
Just want to say that I am a bit overwhelmed with work this week. I will have a look soon. |
Thank you for looking at it. I created a fork with my proposition if you want to take a look: https://github.com/MaelAstruc/gtrendsR |
Looks like you are/were quite correct and I was wrong, my bad! I have a vague recollection of us at some point only firing one query. So yes there may be scope for improvement (though it may also be tricky to do that in a clean 'backward-compatible" way). |
In terms of backward compatibility
|
Hello,
Like others I have encountered issues with a Status code 429 #431 due to too many requests. To decrease the number of requests, I would like to only request what I need: the times variations or the regional variations.
For this, I could add a parameter
outcomes
ingtrendsR()
similar toonlyInterest
, which can be equal to:We could ask for multiple outcomes like "time" and "region" if we want only these two. The rest of the list would be filled with
NULL
s.If this seems fine to you, I can create a fork and submit a PR with these modifications.
The text was updated successfully, but these errors were encountered: