summaryrefslogtreecommitdiff
path: root/searx/engines/wikipedia.py
diff options
context:
space:
mode:
authorasciimoo <asciimoo@gmail.com>2013-10-15 22:28:27 +0200
committerasciimoo <asciimoo@gmail.com>2013-10-15 22:28:27 +0200
commit4bf44076d4e12dd852612db5082fad451520d67d (patch)
tree22f7806c9345bc08b669226187ea1f2dde44d128 /searx/engines/wikipedia.py
parent1f79a571dd38f93cc5e07c749a1ddeaaa881a7ef (diff)
downloadsearxng-4bf44076d4e12dd852612db5082fad451520d67d.tar.gz
searxng-4bf44076d4e12dd852612db5082fad451520d67d.zip
[enh] proper urls
Diffstat (limited to 'searx/engines/wikipedia.py')
-rw-r--r--searx/engines/wikipedia.py2
1 files changed, 1 insertions, 1 deletions
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