mirror of https://github.com/searxng/searxng.git
[fix] pep8
This commit is contained in:
parent
bbe4442a86
commit
7d8fd4b95e
|
@ -37,7 +37,6 @@ def request(query, params):
|
||||||
if params['time_range'] and params['time_range'] not in time_range_dict:
|
if params['time_range'] and params['time_range'] not in time_range_dict:
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
params['url'] = search_url.format(page=params['pageno'],
|
params['url'] = search_url.format(page=params['pageno'],
|
||||||
query=urlencode({'q': query}))
|
query=urlencode({'q': query}))
|
||||||
if params['time_range'] in time_range_dict:
|
if params['time_range'] in time_range_dict:
|
||||||
|
@ -56,7 +55,6 @@ def response(resp):
|
||||||
|
|
||||||
dom = html.fromstring(resp.text)
|
dom = html.fromstring(resp.text)
|
||||||
|
|
||||||
|
|
||||||
# parse results
|
# parse results
|
||||||
for row in dom.xpath('//div[contains(@data-hook, "content_row")]'):
|
for row in dom.xpath('//div[contains(@data-hook, "content_row")]'):
|
||||||
for result in row.xpath('./div'):
|
for result in row.xpath('./div'):
|
||||||
|
|
Loading…
Reference in New Issue