36 dom = html.fromstring(resp.text)
38 for result
in eval_xpath_list(dom,
'//table[contains(@class, "table-list")]/tbody//tr'):
39 href = urljoin(url, eval_xpath_getindex(result,
'./td[contains(@class, "name")]/a[2]/@href', 0))
40 title = extract_text(eval_xpath(result,
'./td[contains(@class, "name")]/a[2]'))
41 seed = extract_text(eval_xpath(result,
'.//td[contains(@class, "seeds")]'))
42 leech = extract_text(eval_xpath(result,
'.//td[contains(@class, "leeches")]'))
43 filesize = extract_text(eval_xpath(result,
'.//td[contains(@class, "size")]/text()'))
52 'template':
'torrent.html',