This commit is contained in:
lededev
2021-11-14 08:52:45 +08:00
parent 4d7aad19d0
commit 701cc954cb
5 changed files with 16 additions and 18 deletions

View File

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