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

@@ -14,7 +14,7 @@ def getTitle_fc2com(htmlcode): #获取厂商
return result
def getActor_fc2com(htmlcode):
try:
htmtml = etree.fromstring(htmlcode, etree.HTMLParser())
html = etree.fromstring(htmlcode, etree.HTMLParser())
result = html.xpath('//*[@id="top"]/div[1]/section[1]/div/section/div[2]/ul/li[3]/a/text()')[0]
return result
except: