删除标题中番号,使用小封面,修复‘演员、片商’获取

This commit is contained in:
mo_yy 2020-01-10 18:29:38 +08:00 committed by GitHub
parent 3545705283
commit c073a1e253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,6 @@ def main(number):
a = get_html('https://javdb.com/search?q=' + number + '&f=all').replace(u'\xa0', u' ') a = get_html('https://javdb.com/search?q=' + number + '&f=all').replace(u'\xa0', u' ')
html = etree.fromstring(a, etree.HTMLParser()) # //table/tr[1]/td[1]/text() html = etree.fromstring(a, etree.HTMLParser()) # //table/tr[1]/td[1]/text()
result1 = html.xpath('//*[@id="videos"]/div/div/a/@href')[0] result1 = html.xpath('//*[@id="videos"]/div/div/a/@href')[0]
print(html.xpath('//*[@id="videos"]/div/div/a/@href'))
b = get_html('https://javdb.com' + result1).replace(u'\xa0', u' ') b = get_html('https://javdb.com' + result1).replace(u'\xa0', u' ')
dic = { dic = {
'actor': getActor(b), 'actor': getActor(b),