This commit is contained in:
lededev
2021-11-14 08:58:27 +08:00
parent 701cc954cb
commit b64dc83e2e

View File

@@ -72,7 +72,7 @@ def getSerise(html): #获取系列
return str(x[0]) if len(x) else '' return str(x[0]) if len(x) else ''
def getTag(html): # 获取标签 def getTag(html): # 获取标签
klist = html.xpath('/html/head/meta[@name="keywords"]/@content')[0].split(',') klist = html.xpath('/html/head/meta[@name="keywords"]/@content')[0].split(',')
return [v for v in klist[1:]] return klist[1:]
def getExtrafanart(htmlcode): # 获取剧照 def getExtrafanart(htmlcode): # 获取剧照
html_pather = re.compile(r'<div id=\"sample-waterfall\">[\s\S]*?</div></a>\s*?</div>') html_pather = re.compile(r'<div id=\"sample-waterfall\">[\s\S]*?</div></a>\s*?</div>')
html = html_pather.search(htmlcode) html = html_pather.search(htmlcode)