mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Aol Engine Update
This commit is contained in:
parent
11cf1ca5f1
commit
0226c1383f
1 changed files with 3 additions and 2 deletions
|
@ -10,17 +10,18 @@ about = {
|
|||
safesearch = True
|
||||
paging = True
|
||||
base_url = 'https://search.aol.com/aol/search'
|
||||
pz = 10
|
||||
|
||||
|
||||
def request(query, params):
|
||||
page = ((params['pageno'] - 1) * 15) + 1
|
||||
page = ((params['pageno'] - 1) * pz) + 1
|
||||
|
||||
safesearch = 'i' if params['safesearch'] == '1' else 'r' if params['safesearch'] == '2' else 'p'
|
||||
|
||||
query_params = {
|
||||
'q': query,
|
||||
'b': page,
|
||||
'pz': 15
|
||||
'pz': pz
|
||||
}
|
||||
|
||||
params['url'] = f'{base_url}?{urlencode(query_params)}'
|
||||
|
|
Loading…
Add table
Reference in a new issue