From 4bf44076d4e12dd852612db5082fad451520d67d Mon Sep 17 00:00:00 2001 From: asciimoo Date: Tue, 15 Oct 2013 22:28:27 +0200 Subject: [PATCH] [enh] proper urls --- searx/engines/wikipedia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py index 63520dbd9..fcd917abf 100644 --- 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