mirror of
https://github.com/searxng/searxng.git
synced 2024-11-17 09:50:13 +01:00
[enh] proper urls
This commit is contained in:
parent
1f79a571dd
commit
4bf44076d4
@ -10,6 +10,6 @@ def response(resp):
|
||||
search_results = loads(resp.text)
|
||||
results = []
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user