-
Notifications
You must be signed in to change notification settings - Fork 151
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
Google rate limit kicking in #42
Comments
I think that there isn't a shared API key. This might be caused by someone in your network running lots of google api calls. (This probably makes more sense if you are in an office rather than at home). |
Have the same problem, after playing few minutes I always got an error "You are doing too many requests to Google. You need to wait a bit before trying again" |
Hope that helps! |
I didn't even managed to use this once. I always get the rate limit msg |
Yeah we need someone to write an api to scrape bing or duckduckgo |
I'm happy to take a look at implementing that in the coming week, if you'd like. |
@mkohlmyr awesome |
Pretty sure I have ddg / bing / google basically working with an -e flag for search engine selection. If it sounds interesting I could also add support for an environment variable to set the default.
https://github.com/mkohlmyr/how2/commit/4b0cf93f9e87634f125d28c658a313a7e1517e23 Let me know if you want any changes. |
Ping @santinic re commits above 📢 Happy to squash them if you feel that's cleaner, or if you want me to rename / restructure any of the changes. |
@mkohlmyr sorry for the delay. It looks really good ! I have two questions:
|
I'll hit you back up by the end of the weekend probably with some updates. |
So I have done some investigating. Your error is probably a rate limiting page that I was unaware of. It would be easy to improve the printing of the parameters, I could also create a special error message for this case by looking at the source it brings back. FWIW it also looks like Bing has a tendency to return questions that have been closed by the user, moderator or have no answers, all of which would cause the magic search to reply with "cannot find any reasonable answer for your query". e.g. I have not had time to implement the changes I mentioned, but I will hopefully get to it later this week (after wednesday). If you don't want to wait, feel free to adapt the code I posted! |
While issuing a query, the app failed with the following error:
If the app is using an API key shared across all users, it might be hitting a rate limit earlier than expected?
The text was updated successfully, but these errors were encountered: