From b422788eb46906d9befbd8b7399bf4653e1fb14e Mon Sep 17 00:00:00 2001 From: Adam Tauber Date: Tue, 4 Nov 2014 19:53:42 +0100 Subject: [PATCH] [fix] wikipedia autocompleter url param --- searx/autocomplete.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/autocomplete.py b/searx/autocomplete.py index 183769af..545bd69e 100644 --- a/searx/autocomplete.py +++ b/searx/autocomplete.py @@ -69,7 +69,7 @@ def wikipedia(query): # wikipedia autocompleter url = 'https://en.wikipedia.org/w/api.php?action=opensearch&{0}&limit=10&namespace=0&format=json' # noqa - resp = loads(get(url.format(urlencode(dict(q=query)))).text) + resp = loads(get(url.format(urlencode(dict(search=query)))).text) if len(resp) > 1: return resp[1] return []