mirror of
https://github.com/searxng/searxng.git
synced 2025-08-07 12:26:44 +02:00
[fix] wikipedia autocompleter url param
This commit is contained in:
parent
ee8cabf496
commit
b422788eb4
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ def wikipedia(query):
|
||||||
# wikipedia autocompleter
|
# wikipedia autocompleter
|
||||||
url = 'https://en.wikipedia.org/w/api.php?action=opensearch&{0}&limit=10&namespace=0&format=json' # noqa
|
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:
|
if len(resp) > 1:
|
||||||
return resp[1]
|
return resp[1]
|
||||||
return []
|
return []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue