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