diff options
author | asciimoo <asciimoo@gmail.com> | 2013-10-23 23:46:33 +0200 |
---|---|---|
committer | asciimoo <asciimoo@gmail.com> | 2013-10-23 23:46:33 +0200 |
commit | e7792d77a7511c49be76464235ab27c045f42a50 (patch) | |
tree | bc09fe9030c1c2fa39874828ecfbf9b0dbd08d40 /searx/engines/wikipedia.py | |
parent | 60d8e7febd0e6b557cfb3bb383bf178f743b018b (diff) | |
download | searxng-e7792d77a7511c49be76464235ab27c045f42a50.tar.gz searxng-e7792d77a7511c49be76464235ab27c045f42a50.zip |
[mod] wikipedia engine removed
Diffstat (limited to 'searx/engines/wikipedia.py')
-rw-r--r-- | searx/engines/wikipedia.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/searx/engines/wikipedia.py b/searx/engines/wikipedia.py deleted file mode 100644 index 308295946..000000000 --- a/searx/engines/wikipedia.py +++ /dev/null @@ -1,16 +0,0 @@ -from json import loads - -def request(query, params): - params['url'] = 'http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=%s&srprop=timestamp&format=json' % query - - return params - - -def response(resp): - search_results = loads(resp.text) - results = [] - res = search_results.get('query', {}).get('search', []) - if len(res): - results.append({'url': 'https://en.wikipedia.org/wiki/%s' % res[0]['title'].replace(' ', '_'), 'title': res[0]['title']}) - return results - |