93 search_results = etree.XML(resp.content)
96 if len(search_results) == 0:
99 for entry
in search_results.xpath(
'./channel/item'):
100 title = entry.find(
"title").text
101 link = entry.find(
"guid").text
102 fullDescription = entry.find(
"description").text.split(
'<br>')
103 magnetlink = entry.find(
"link").text
104 pubDate = entry.find(
"pubDate").text
109 'magnetlink': magnetlink,
112 'filesize': fullDescription[1],
113 'publishedDate': datetime.strptime(pubDate,
'%a,%d %b %Y %H:%M:%S %z'),
114 'template':
'torrent.html',