Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
153b4699fe | ||
|
4bf915d916 |
@ -38,6 +38,7 @@
|
||||
* 用户使用该软件时,若产生一切违法行为由用户承担<br>
|
||||
* 严禁用户使用于商业和个人其他意图<br>
|
||||
* 本软件作者保留最终决定权和最终解释权<br>
|
||||
* 本软件受国际版权法保护
|
||||
|
||||
**若用户不同意上述条款任意一条,请勿使用该软件**<br>
|
||||
|
||||
|
4
javdb.py
4
javdb.py
@ -67,9 +67,7 @@ def getCover_small(a):
|
||||
return result
|
||||
def getCover(htmlcode):
|
||||
html = etree.fromstring(htmlcode, etree.HTMLParser())
|
||||
result = str(html.xpath('/html/body/section/div/div[2]/div[1]/a/img/@src')).strip(" ['']")
|
||||
if result == '':
|
||||
result = str(html.xpath('/html/body/section/div/div[4]/div[1]/a/img/@src')).strip(" ['']")
|
||||
result = str(html.xpath('/html/body/section/div/div[@class=\'columns item-content\']/div[@class=\'column column-video-cover\']/a/img/@src')).strip(" ['']")
|
||||
return result
|
||||
def getDirector(a):
|
||||
html = etree.fromstring(a, etree.HTMLParser()) # //table/tr[1]/td[1]/text()
|
||||
|
Loading…
Reference in New Issue
Block a user