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