little refactoring
commit3d61d9b9308df7e07ab5ccee6e2f323652b4be2d
authorThomas Pointhuber <thomas.pointhuber@gmx.at>
dateTue 2 Sep 2014, 17:13 (12 years ago)
parent16d1526
searx/engines/bing.py+1
@@ -23,6 +23,7 @@ language_support = True
2323base_url = 'https://www.bing.com/'
2424search_string = 'search?{query}&first={offset}'
2525
26+
2627# do search-request
2728def request(query, params):
2829 offset = (params['pageno'] - 1) * 10 + 1
searx/engines/bing_images.py+1
@@ -24,6 +24,7 @@ paging = True
2424base_url = 'https://www.bing.com/'
2525search_string = 'images/search?{query}&count=10&first={offset}'
2626
27+
2728# do search-request
2829def request(query, params):
2930 offset = (params['pageno'] - 1) * 10 + 1
searx/engines/bing_news.py+1
@@ -24,6 +24,7 @@ language_support = True
2424base_url = 'https://www.bing.com/'
2525search_string = 'news/search?{query}&first={offset}'
2626
27+
2728# do search-request
2829def request(query, params):
2930 offset = (params['pageno'] - 1) * 10 + 1
searx/engines/deviantart.py+1−1
@@ -6,7 +6,7 @@
66# @using-api no (TODO, rewrite to api)
77# @results HTML
88# @stable no (HTML can change)
9−# @parse url, title, thumbnail
9+# @parse url, title, thumbnail, img_src
1010#
1111# @todo rewrite to api
1212