Update 2.1

This commit is contained in:
Yoshiko 2020-01-19 17:30:35 +08:00 committed by GitHub
parent 09006865b9
commit 6f6ed31b31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ os.chdir(os.getcwd())
# ============global var===========
version='2.0'
version='2.1'
config = ConfigParser()
config.read(config_file, encoding='UTF-8')

View File

@ -71,16 +71,16 @@ def getTag(a): # 获取演员
return d
def main(number):
a = get_html('https://avsox.asia/cn/search/' + number)
a = get_html('https://avsox.host/cn/search/' + number)
html = etree.fromstring(a, etree.HTMLParser()) # //table/tr[1]/td[1]/text()
result1 = str(html.xpath('//*[@id="waterfall"]/div/a/@href')).strip(" ['']")
if result1 == '' or result1 == 'null' or result1 == 'None':
a = get_html('https://avsox.asia/cn/search/' + number.replace('-', '_'))
a = get_html('https://avsox.host/cn/search/' + number.replace('-', '_'))
print(a)
html = etree.fromstring(a, etree.HTMLParser()) # //table/tr[1]/td[1]/text()
result1 = str(html.xpath('//*[@id="waterfall"]/div/a/@href')).strip(" ['']")
if result1 == '' or result1 == 'null' or result1 == 'None':
a = get_html('https://avsox.asia/cn/search/' + number.replace('_', ''))
a = get_html('https://avsox.host/cn/search/' + number.replace('_', ''))
print(a)
html = etree.fromstring(a, etree.HTMLParser()) # //table/tr[1]/td[1]/text()
result1 = str(html.xpath('//*[@id="waterfall"]/div/a/@href')).strip(" ['']")
@ -109,4 +109,4 @@ def main(number):
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'), ) # .encode('UTF-8')
return js
#print(main('041516_541'))
#print(main('012717_472'))

View File

@ -1,5 +1,5 @@
{
"version": "2.0",
"version_show":"2.0",
"version": "2.1",
"version_show":"2.1",
"download": "https://github.com/yoshiko2/AV_Data_Capture/releases"
}