Merge pull request #473 from CosmosAtlas/master

Use large image as cover in mgstage
This commit is contained in:
Yoshiko2
2021-05-03 21:33:31 +08:00
committed by GitHub

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):