mirror of https://github.com/searx/searx
[fix] style of stackexchange engine
This commit is contained in:
parent
a1f9919587
commit
1d5feed4c1
|
@ -29,6 +29,7 @@ api_order = 'desc'
|
||||||
# https://api.stackexchange.com/docs/advanced-search
|
# https://api.stackexchange.com/docs/advanced-search
|
||||||
search_api = 'https://api.stackexchange.com/2.3/search/advanced?'
|
search_api = 'https://api.stackexchange.com/2.3/search/advanced?'
|
||||||
|
|
||||||
|
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
|
|
||||||
args = urlencode({
|
args = urlencode({
|
||||||
|
@ -37,12 +38,13 @@ def request(query, params):
|
||||||
'pagesize': pagesize,
|
'pagesize': pagesize,
|
||||||
'site': api_site,
|
'site': api_site,
|
||||||
'sort': api_sort,
|
'sort': api_sort,
|
||||||
'order': 'desc',
|
'order': api_order,
|
||||||
})
|
})
|
||||||
params['url'] = search_api + args
|
params['url'] = search_api + args
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
def response(resp):
|
def response(resp):
|
||||||
|
|
||||||
results = []
|
results = []
|
||||||
|
|
Loading…
Reference in New Issue