def info(self):
if self._info is None:
os.system("curl %s -o /tmp.html -s" % str(self.url))
request = urlopen("file:///tmp.html")
document = html.parse(request)
root = document.getroot()
if root.cssselect('#details > .nfo > pre') != []:
info = root.cssselect('#details > .nfo > pre')[0].text_content()
else:
info = None
self._info = info
return self._info
评论列表
文章目录