Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
153b4699fe | ||
|
|
4bf915d916 |
+1
-1
@@ -14,7 +14,7 @@ os.chdir(os.getcwd())
|
||||
|
||||
# ============global var===========
|
||||
|
||||
version='2.2'
|
||||
version='2.1'
|
||||
|
||||
config = ConfigParser()
|
||||
config.read(config_file, encoding='UTF-8')
|
||||
|
||||
@@ -38,6 +38,7 @@
|
||||
* 用户使用该软件时,若产生一切违法行为由用户承担<br>
|
||||
* 严禁用户使用于商业和个人其他意图<br>
|
||||
* 本软件作者保留最终决定权和最终解释权<br>
|
||||
* 本软件受国际版权法保护
|
||||
|
||||
**若用户不同意上述条款任意一条,请勿使用该软件**<br>
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ success_output_folder=JAV_output
|
||||
soft_link=0
|
||||
|
||||
[proxy]
|
||||
proxy=127.0.0.1:1081
|
||||
proxy=
|
||||
timeout=10
|
||||
retry=3
|
||||
|
||||
|
||||
@@ -3,9 +3,6 @@ from lxml import etree
|
||||
import json
|
||||
from bs4 import BeautifulSoup
|
||||
from ADC_function import *
|
||||
# import sys
|
||||
# import io
|
||||
# sys.stdout = io.TextIOWrapper(sys.stdout.buffer, errors = 'replace', line_buffering = True)
|
||||
|
||||
def getTitle(a):
|
||||
try:
|
||||
@@ -64,13 +61,13 @@ def getTag(a):
|
||||
return str(result1 + result2).strip('+').replace(",\\xa0", "").replace("'", "").replace(' ', '').replace(',,', '').lstrip(',')
|
||||
def getCover_small(a):
|
||||
html = etree.fromstring(a, etree.HTMLParser()) # //table/tr[1]/td[1]/text()
|
||||
result = html.xpath("//div[@class='item-image fix-scale-cover']/img/@src")[0]
|
||||
if not 'https' in result:
|
||||
result = 'https:' + result
|
||||
result = 'http:' + html.xpath(
|
||||
'//div[@id=\'videos\']/div[@class=\'grid columns\']/div[@class=\'grid-item column\'][1]/a['
|
||||
'@class=\'box\']/div[@class=\'item-image fix-scale-cover\']/img/@src')[0]
|
||||
return result
|
||||
def getCover(htmlcode):
|
||||
html = etree.fromstring(htmlcode, etree.HTMLParser())
|
||||
result = str(html.xpath("//div[@class='column column-video-cover']/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()
|
||||
@@ -139,7 +136,7 @@ def main(number):
|
||||
'label': getLabel(b),
|
||||
'year': getYear(getRelease(b)), # str(re.search('\d{4}',getRelease(a)).group()),
|
||||
'actor_photo': getActorPhoto(getActor(b)),
|
||||
'website': 'https://javdb3.com' + result1,
|
||||
'website': 'https://javdb.com' + result1,
|
||||
'source': 'javdb.py',
|
||||
}
|
||||
if getNum(b) != number: # 与搜索到的番号不匹配
|
||||
@@ -150,4 +147,4 @@ def main(number):
|
||||
|
||||
# main('DV-1562')
|
||||
# input("[+][+]Press enter key exit, you can check the error messge before you exit.\n[+][+]按回车键结束,你可以在结束之前查看和错误信息。")
|
||||
# print(main('YMDD-178'))
|
||||
# print(get_html('https://javdb1.com/v/WwZ0Q'))
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "2.2",
|
||||
"version_show":"2.2",
|
||||
"version": "2.1",
|
||||
"version_show":"2.1",
|
||||
"download": "https://github.com/yoshiko2/AV_Data_Capture/releases"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user