on master help sign in
little refactoring
3d61d9bThomas Pointhuber
searx/engines/bing.py+1
@@ -23,6 +23,7 @@ language_support = True
23base_url = 'https://www.bing.com/'
23base_url = 'https://www.bing.com/'
24search_string = 'search?{query}&first={offset}'
24search_string = 'search?{query}&first={offset}'
25
25
26+
26# do search-request
27# do search-request
27def request(query, params):
28def request(query, params):
28 offset = (params['pageno'] - 1) * 10 + 1
29 offset = (params['pageno'] - 1) * 10 + 1
searx/engines/bing_images.py+1
@@ -24,6 +24,7 @@ paging = True
24base_url = 'https://www.bing.com/'
24base_url = 'https://www.bing.com/'
25search_string = 'images/search?{query}&count=10&first={offset}'
25search_string = 'images/search?{query}&count=10&first={offset}'
26
26
27+
27# do search-request
28# do search-request
28def request(query, params):
29def request(query, params):
29 offset = (params['pageno'] - 1) * 10 + 1
30 offset = (params['pageno'] - 1) * 10 + 1
searx/engines/bing_news.py+1
@@ -24,6 +24,7 @@ language_support = True
24base_url = 'https://www.bing.com/'
24base_url = 'https://www.bing.com/'
25search_string = 'news/search?{query}&first={offset}'
25search_string = 'news/search?{query}&first={offset}'
26
26
27+
27# do search-request
28# do search-request
28def request(query, params):
29def request(query, params):
29 offset = (params['pageno'] - 1) * 10 + 1
30 offset = (params['pageno'] - 1) * 10 + 1
searx/engines/deviantart.py+1−1
@@ -6,7 +6,7 @@
6# @using-api no (TODO, rewrite to api)
6# @using-api no (TODO, rewrite to api)
7# @results HTML
7# @results HTML
8# @stable no (HTML can change)
8# @stable no (HTML can change)
9−# @parse url, title, thumbnail
9+# @parse url, title, thumbnail, img_src
10#
10#
11# @todo rewrite to api
11# @todo rewrite to api
12
12