mirror of https://github.com/searx/searx
Onesearch pagination
This commit is contained in:
parent
51530bc394
commit
4b785677d8
|
@ -24,13 +24,15 @@ about = {
|
|||
|
||||
# engine dependent config
|
||||
categories = ['general']
|
||||
paging = True
|
||||
|
||||
# search-url
|
||||
URL = 'https://www.onesearch.com/yhs/search;?p=%s'
|
||||
URL = 'https://www.onesearch.com/yhs/search;?p=%s&b=%d'
|
||||
|
||||
|
||||
def request(query, params):
|
||||
params['url'] = URL % query
|
||||
starting_from = (params['pageno'] * 10) - 9
|
||||
params['url'] = URL % (query, starting_from)
|
||||
return params
|
||||
|
||||
|
||||
|
|
|
@ -1624,7 +1624,7 @@ engines:
|
|||
- name: onesearch
|
||||
shortcut: onesearch
|
||||
engine: onesearch
|
||||
paging: false
|
||||
paging: true
|
||||
categories: general
|
||||
about:
|
||||
website: https://www.onesearch.com/
|
||||
|
|
Loading…
Reference in New Issue