phenny icon indicating copy to clipboard operation
phenny copied to clipboard

.g google search seems broken now

Open deadbeatguitarist opened this issue 10 years ago • 2 comments

If I issue .g helloworld I get this error: TypeError: 'NoneType' object has no attribute 'getitem' (file "/home/username/ircbot/thelonius/modules/search.py", line 33, in result)

I gather the google api has changed? Other IRC bots are having the same problem. This seems to be where things need to go. I'm not sure if its a trivial change or a big one. I enjoy this bot and it would be great if someone could update it but if not I can switch to a different bot. Thought I would try this first.

https://ajax.googleapis.com/ajax/services/search/web?q=hello&v=1.0 {"responseData": null, "responseDetails": "The Google Web Search API is no longer available. Please migrate to the Google Custom Search API (https://developers.google.com/custom-search/)", "responseStatus": 403}

deadbeatguitarist avatar Dec 18 '14 17:12 deadbeatguitarist

Further digging it looks like google is going to have people pay if they exceed 100 queries... Wonder if its time to migrate to duckduckgo... https://duckduckgo.com/api, https://pypi.python.org/pypi/duckduckgo2/

deadbeatguitarist avatar Dec 18 '14 17:12 deadbeatguitarist

Searches seem to work now. Not sure what the deal is.

deadbeatguitarist avatar Dec 22 '14 17:12 deadbeatguitarist