commit: 4bf44076d4e12dd852612db5082fad451520d67d
parent: 1f79a571dd38f93cc5e07c749a1ddeaaa881a7ef
Author: asciimoo <asciimoo@gmail.com>
Date: Tue, 15 Oct 2013 22:28:27 +0200
[enh] proper urls
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py
@@ -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