mirror of
https://github.com/searxng/searxng
synced 2024-01-01 18:24:07 +00:00
[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
Block a user