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
|
# engine dependent config
|
||||||
categories = ['general']
|
categories = ['general']
|
||||||
|
paging = True
|
||||||
|
|
||||||
# search-url
|
# 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):
|
def request(query, params):
|
||||||
params['url'] = URL % query
|
starting_from = (params['pageno'] * 10) - 9
|
||||||
|
params['url'] = URL % (query, starting_from)
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1624,7 +1624,7 @@ engines:
|
||||||
- name: onesearch
|
- name: onesearch
|
||||||
shortcut: onesearch
|
shortcut: onesearch
|
||||||
engine: onesearch
|
engine: onesearch
|
||||||
paging: false
|
paging: true
|
||||||
categories: general
|
categories: general
|
||||||
about:
|
about:
|
||||||
website: https://www.onesearch.com/
|
website: https://www.onesearch.com/
|
||||||
|
|
Loading…
Reference in New Issue