forked from zaclys/searxng
[enh] proper urls
This commit is contained in:
parent
1f79a571dd
commit
4bf44076d4
|
@ -10,6 +10,6 @@ def response(resp):
|
||||||
search_results = loads(resp.text)
|
search_results = loads(resp.text)
|
||||||
results = []
|
results = []
|
||||||
for res in search_results.get('query', {}).get('search', []):
|
for res in search_results.get('query', {}).get('search', []):
|
||||||
results.append({'url': 'https://en.wikipedia.org/wiki/%s' % res['title'], 'title': res['title']})
|
results.append({'url': 'https://en.wikipedia.org/wiki/%s' % res['title'].replace(' ', '_'), 'title': res['title']})
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue