sbp / phenny

Python IRC bot
http://inamidst.com/phenny/
380 stars 233 forks source link

.g google search seems broken now #37

Open deadbeatguitarist opened 9 years ago

deadbeatguitarist commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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