Browse Source

little refactoring

Thomas Pointhuber 10 years ago
parent
commit
3d61d9b930

+ 1
- 0
searx/engines/bing.py View File

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

+ 1
- 0
searx/engines/bing_images.py View File

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

+ 1
- 0
searx/engines/bing_news.py View File

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

+ 1
- 1
searx/engines/deviantart.py View File

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