Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] wikipedia autocompleter url param

Adam Tauberb422788eb469
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 []