Update 1.8

This commit is contained in:
Yoshiko
2019-12-15 20:30:20 +08:00
committed by GitHub
parent ec9957c75c
commit 3b84877a53
4 changed files with 17 additions and 21 deletions

View File

@@ -51,6 +51,8 @@ def getYear(release):
def main(number):
number=number.replace('PPV','').replace('ppv','').strip('fc2_').strip('fc2-').strip('ppv-').strip('PPV-').strip('FC2_').strip('FC2-').strip('ppv-').strip('PPV-').replace('fc2ppv-','').replace('FC2PPV-','')
htmlcode2 = ADC_function.get_html('http://adult.contents.fc2.com/article_search.php?id='+str(number).lstrip("FC2-").lstrip("fc2-").lstrip("fc2_").lstrip("fc2-")+'')
print('http://adult.contents.fc2.com/article_search.php?id='+str(number).lstrip("FC2-").lstrip("fc2-").lstrip("fc2_").lstrip("fc2-")+'')
print(htmlcode2)
#htmlcode = ADC_function.get_html('http://fc2fans.club/html/FC2-' + number + '.html')
dic = {
'title': getTitle(htmlcode2),
@@ -70,6 +72,4 @@ def main(number):
'source': 'fc2fans_club.py',
}
js = json.dumps(dic, ensure_ascii=False, sort_keys=True, indent=4, separators=(',', ':'),)#.encode('UTF-8')
return js
#print(main('1145465'))
return js