Onesearch pagination

This commit is contained in:
Israel Yago Pereira 2021-11-02 13:41:20 -03:00
parent 51530bc394
commit 4b785677d8
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -1624,7 +1624,7 @@ engines:
- name: onesearch
shortcut: onesearch
engine: onesearch
paging: false
paging: true
categories: general
about:
website: https://www.onesearch.com/