diff --git a/plugins/google.py b/plugins/google.py index e2047e6..e90c874 100644 --- a/plugins/google.py +++ b/plugins/google.py @@ -9,6 +9,7 @@ from util import hook def api_get(kind, query): req_url = 'http://ajax.googleapis.com/ajax/services/search/%s?' \ 'v=1.0&safe=off&q=%s' + query = query.encode('utf8') url = req_url % (kind, urllib.quote(query, safe='')) page = urllib.urlopen(url).read() return json.loads(page)