diff --git a/modules/search.py b/modules/search.py index 18c4b55..a8c8338 100644 --- a/modules/search.py +++ b/modules/search.py @@ -14,7 +14,7 @@ def google_ajax(query): """Search using AjaxSearch, and return its JSON.""" if isinstance(query, str): query = query.encode('utf-8') - uri = 'http://ajax.googleapis.com/ajax/services/search/web' + uri = 'https://ajax.googleapis.com/ajax/services/search/web' args = '?v=1.0&safe=off&q=' + web.quote(query) bytes = web.get(uri + args, headers={'Referer': 'https://github.com/sbp/phenny'}) return web.json(bytes) @@ -100,7 +100,7 @@ r_bing = re.compile(r'