This commit is contained in:
yoshiko2
2021-05-03 22:14:41 +08:00

View File

@@ -75,6 +75,7 @@ def getTag(a):
def getCover(htmlcode):
html = etree.fromstring(htmlcode, etree.HTMLParser())
result = str(html.xpath('//*[@id="center_column"]/div[1]/div[1]/div/div/h2/img/@src')).strip(" ['']")
result = str(html.xpath('//*[@id="EnlargeImage"]/@href')).strip(" ['']")
# /html/body/div[2]/article[2]/div[1]/div[1]/div/div/h2/img/@src
return result
def getDirector(a):