on master help sign in
[enh] proper urls
commit4bf44076d4e12dd852612db5082fad451520d67d authorasciimoo <asciimoo@gmail.com> dateTue 15 Oct 2013, 22:28 (13 years ago) parent1f79a57
1 file changed+1−1
searx/engines/wikipedia.py+1−1
searx/engines/wikipedia.py+1−1
@@ -10,6 +10,6 @@ def response(resp):
1010 search_results = loads(resp.text)
1111 results = []
1212 for res in search_results.get('query', {}).get('search', []):
13− results.append({'url': 'https://en.wikipedia.org/wiki/%s' % res['title'], 'title': res['title']})
13+ results.append({'url': 'https://en.wikipedia.org/wiki/%s' % res['title'].replace(' ', '_'), 'title': res['title']})
1414 return results
1515