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

Google search not working because of API changes #96

Open
DSchndr opened this issue Nov 25, 2016 · 0 comments
Open

Google search not working because of API changes #96

DSchndr opened this issue Nov 25, 2016 · 0 comments

Comments

@DSchndr
Copy link

DSchndr commented Nov 25, 2016

The old Google websearch API is deprecated.
Because of this the bot throws
Body: /search cat
Traceback (most recent call last):
File ".../src/router.py", line 76, in handle_callback
data = callback(message, match)
File ".../src/views/google.py", line 29, in google_search
page_url = urllib.unquote(req.json()["responseData"]["results"][0]["url"])
TypeError: 'NoneType' object has no attribute 'getitem'
at me when i try to search something.

An fix would be to modify the code to fit the custom search API.

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

1 participant