Skip to content
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

Return -2 when query in anchorbank? #2

Open
manoelhortaribeiro opened this issue Aug 27, 2020 · 1 comment
Open

Return -2 when query in anchorbank? #2

manoelhortaribeiro opened this issue Aug 27, 2020 · 1 comment

Comments

@manoelhortaribeiro
Copy link
Collaborator

@GorjanP, what's up with that? Shouldn't we simply query it?

@GorjanP
Copy link
Collaborator

GorjanP commented Aug 27, 2020

When the binary search encounters it in the anchorbank, PyTrends gets the query list: [keyword, keyword] and it doesn't handle when you put the same keyword in. How should we calibrate it if it's already in the gtab?

Possible solutions:

  1. keep the data computed while constructing the gtab and pull frmo there(cons, need to keep the corresponding .pkl files for each gtab)
  2. Prevent the query (keyword, keyword) and instead use the last hit in the binary search twice to construct two (keyword, last_hit) queries, and use the "keyword" data from both to calibrate it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants