summaryrefslogtreecommitdiff
path: root/searx/autocomplete.py
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2014-11-04 19:53:42 +0100
committerAdam Tauber <asciimoo@gmail.com>2014-11-04 19:53:42 +0100
commitb422788eb46906d9befbd8b7399bf4653e1fb14e (patch)
tree999e5dd2cadf776e63f5e9cf784671b22316f7fc /searx/autocomplete.py
parentee8cabf496a27030c4035266e92c792ce294b013 (diff)
downloadsearxng-b422788eb46906d9befbd8b7399bf4653e1fb14e.tar.gz
searxng-b422788eb46906d9befbd8b7399bf4653e1fb14e.zip
[fix] wikipedia autocompleter url param
Diffstat (limited to 'searx/autocomplete.py')
-rw-r--r--searx/autocomplete.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/autocomplete.py b/searx/autocomplete.py
index 183769af8..545bd69e7 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 []