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