diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-15 22:28:27 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-15 22:28:27 +0200 |
commit | 4bf44076d4e12dd852612db5082fad451520d67d (patch) | |
tree | 22f7806c9345bc08b669226187ea1f2dde44d128 /searx/engines/wikipedia.py | |
parent | 1f79a571dd38f93cc5e07c749a1ddeaaa881a7ef (diff) | |
download | searxng-4bf44076d4e12dd852612db5082fad451520d67d.tar.gz searxng-4bf44076d4e12dd852612db5082fad451520d67d.zip |
[enh] proper urls
Diffstat (limited to 'searx/engines/wikipedia.py')
-rw-r--r-- | searx/engines/wikipedia.py | 2 |
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 |