logo

searx

My custom branche(s) on searx, a meta-search engine
commit: b422788eb46906d9befbd8b7399bf4653e1fb14e
parent: ee8cabf496a27030c4035266e92c792ce294b013
Author: Adam Tauber <asciimoo@gmail.com>
Date:   Tue,  4 Nov 2014 19:53:42 +0100

[fix] wikipedia autocompleter url param

Diffstat:

Msearx/autocomplete.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 []