From 30169160872264b28d4c355a8a6e257459c4d608 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 8 Oct 2018 23:34:22 +0100 Subject: [PATCH] Typo on modules/google.py, 'html' -> 'http' --- modules/google.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/google.py b/modules/google.py index 1e005101..ebbc7461 100644 --- a/modules/google.py +++ b/modules/google.py @@ -40,14 +40,14 @@ class Module(ModuleManager.BaseModule): """ phrase = event["args"] or event["target"].buffer.get() if phrase: - page = utils.html.get_url(URL_GOOGLESUGGEST, get_params={ - "output": "json", "client": "hp", "q": phrase}) + page = utils.http.get_url(URL_GOOGLESUGGEST, get_params={ + "output": "json", "client": "hp", "gl": "gb", "q": phrase}) if page: # google gives us jsonp, so we need to unwrap it. page = page.split("(", 1)[1][:-1] page = json.loads(page) suggestions = page[1] - suggestions = [utils.html.strip_html(s[0]) for s in suggestions] + suggestions = [utils.http.strip_html(s[0]) for s in suggestions] if suggestions: event["stdout"].write("%s: %s" % (phrase,