simp
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user