Explorar el Código

little refactoring

Thomas Pointhuber hace 10 años
padre
commit
3d61d9b930

+ 1
- 0
searx/engines/bing.py Ver fichero

@@ -23,6 +23,7 @@ language_support = True
23 23
 base_url = 'https://www.bing.com/'
24 24
 search_string = 'search?{query}&first={offset}'
25 25
 
26
+
26 27
 # do search-request
27 28
 def request(query, params):
28 29
     offset = (params['pageno'] - 1) * 10 + 1

+ 1
- 0
searx/engines/bing_images.py Ver fichero

@@ -24,6 +24,7 @@ paging = True
24 24
 base_url = 'https://www.bing.com/'
25 25
 search_string = 'images/search?{query}&count=10&first={offset}'
26 26
 
27
+
27 28
 # do search-request
28 29
 def request(query, params):
29 30
     offset = (params['pageno'] - 1) * 10 + 1

+ 1
- 0
searx/engines/bing_news.py Ver fichero

@@ -24,6 +24,7 @@ language_support = True
24 24
 base_url = 'https://www.bing.com/'
25 25
 search_string = 'news/search?{query}&first={offset}'
26 26
 
27
+
27 28
 # do search-request
28 29
 def request(query, params):
29 30
     offset = (params['pageno'] - 1) * 10 + 1

+ 1
- 1
searx/engines/deviantart.py Ver fichero

@@ -6,7 +6,7 @@
6 6
 # @using-api   no (TODO, rewrite to api)
7 7
 # @results     HTML
8 8
 # @stable      no (HTML can change)
9
-# @parse       url, title, thumbnail
9
+# @parse       url, title, thumbnail, img_src
10 10
 #
11 11
 # @todo        rewrite to api
12 12