From 3d61d9b9308df7e07ab5ccee6e2f323652b4be2d Mon Sep 17 00:00:00 2001 From: Thomas Pointhuber Date: Tue, 2 Sep 2014 17:13:44 +0200 Subject: [PATCH] little refactoring --- searx/engines/bing.py | 1 + searx/engines/bing_images.py | 1 + searx/engines/bing_news.py | 1 + searx/engines/deviantart.py | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) 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