diff options
author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-09-02 17:13:44 +0200 |
---|---|---|
committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-09-02 17:13:44 +0200 |
commit | 3d61d9b9308df7e07ab5ccee6e2f323652b4be2d (patch) | |
tree | ade7e0d9139d8b85426be92ca67701ab03000867 | |
parent | 16d15268181d536f1cf7126674619e942fc23b99 (diff) | |
download | searxng-3d61d9b9308df7e07ab5ccee6e2f323652b4be2d.tar.gz searxng-3d61d9b9308df7e07ab5ccee6e2f323652b4be2d.zip |
little refactoring
-rw-r--r-- | searx/engines/bing.py | 1 | ||||
-rw-r--r-- | searx/engines/bing_images.py | 1 | ||||
-rw-r--r-- | searx/engines/bing_news.py | 1 | ||||
-rw-r--r-- | searx/engines/deviantart.py | 2 |
4 files changed, 4 insertions, 1 deletions
diff --git a/searx/engines/bing.py b/searx/engines/bing.py index 2da0df885..56c6b36c1 100644 --- a/searx/engines/bing.py +++ b/searx/engines/bing.py @@ -23,6 +23,7 @@ language_support = True base_url = 'https://www.bing.com/' search_string = 'search?{query}&first={offset}' + # do search-request def request(query, params): offset = (params['pageno'] - 1) * 10 + 1 diff --git a/searx/engines/bing_images.py b/searx/engines/bing_images.py index 5f7f36bc1..8f77e15ce 100644 --- a/searx/engines/bing_images.py +++ b/searx/engines/bing_images.py @@ -24,6 +24,7 @@ paging = True base_url = 'https://www.bing.com/' search_string = 'images/search?{query}&count=10&first={offset}' + # do search-request def request(query, params): offset = (params['pageno'] - 1) * 10 + 1 diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py index 2db41eca8..6c99c35dc 100644 --- a/searx/engines/bing_news.py +++ b/searx/engines/bing_news.py @@ -24,6 +24,7 @@ language_support = True base_url = 'https://www.bing.com/' search_string = 'news/search?{query}&first={offset}' + # do search-request def request(query, params): offset = (params['pageno'] - 1) * 10 + 1 diff --git a/searx/engines/deviantart.py b/searx/engines/deviantart.py index 29386f71d..ff5e1d465 100644 --- a/searx/engines/deviantart.py +++ b/searx/engines/deviantart.py @@ -6,7 +6,7 @@ # @using-api no (TODO, rewrite to api) # @results HTML # @stable no (HTML can change) -# @parse url, title, thumbnail +# @parse url, title, thumbnail, img_src # # @todo rewrite to api |