mirror of
https://github.com/searxng/searxng.git
synced 2024-11-19 02:40:11 +01:00
little refactoring
This commit is contained in:
parent
16d1526818
commit
3d61d9b930
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user