1
0
mirror of https://github.com/searxng/searxng.git synced 2024-07-07 18:00:13 +02:00

Hopefully fix code style errors(again)

This commit is contained in:
rinpatch 2018-04-27 08:29:17 +03:00
parent fb364ffae7
commit b8b23d8006
No known key found for this signature in database
GPG Key ID: DBBBD402C68A98DA

View File

@ -28,11 +28,13 @@ xpath_title = './/td[3]/a[last()]'
xpath_torrent_links = './/td[3]/a'
xpath_filesize = './/td[4]/text()'
def request(query, params):
query = urlencode({'keyword': query})
params['url'] = search_url.format(query=query, offset=params['pageno'])
return params
def response(resp):
results = []
dom = html.fromstring(resp.text)