mirror of https://github.com/searx/searx
[fix] pep8
This commit is contained in:
parent
0fc481f47e
commit
3acdf3f9a1
|
@ -15,11 +15,13 @@ suggestion_xpath = '//div[@id="satat"]//a'
|
||||||
|
|
||||||
paging = True
|
paging = True
|
||||||
|
|
||||||
|
|
||||||
def parse_url(url_string):
|
def parse_url(url_string):
|
||||||
start = url_string.find('http', url_string.find('/RU=')+1)
|
start = url_string.find('http', url_string.find('/RU=')+1)
|
||||||
end = min(url_string.rfind('/RS'), url_string.rfind('/RK'))
|
end = min(url_string.rfind('/RS'), url_string.rfind('/RK'))
|
||||||
return unquote(url_string[start:end])
|
return unquote(url_string[start:end])
|
||||||
|
|
||||||
|
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
offset = (params['pageno'] - 1) * 10 + 1
|
offset = (params['pageno'] - 1) * 10 + 1
|
||||||
if params['language'] == 'all':
|
if params['language'] == 'all':
|
||||||
|
|
Loading…
Reference in New Issue