Remove source fc2club in config.ini

This commit is contained in:
yoshiko2
2022-05-20 17:45:38 +08:00
parent ece9967d3c
commit 94ee34046a
2 changed files with 1 additions and 7 deletions

View File

@@ -7,13 +7,11 @@ import ADC_function
def getTitle_fc2com(htmlcode): #获取标题 def getTitle_fc2com(htmlcode): #获取标题
html = etree.fromstring(htmlcode,etree.HTMLParser()) html = etree.fromstring(htmlcode,etree.HTMLParser())
result = str(html.xpath('//*[@class="show-top-grids"]/div[1]/h3/text()')).strip(" ['']") result = str(html.xpath('//*[@class="show-top-grids"]/div[1]/h3/text()')).strip(" ['']")
print(result)
return result return result
def getActor_fc2com(htmlcode): def getActor_fc2com(htmlcode):
try: try:
html = etree.fromstring(htmlcode, etree.HTMLParser()) html = etree.fromstring(htmlcode, etree.HTMLParser())
result = str(html.xpath('//*[@class="show-top-grids"]/div[1]/h5[5]/a/text()')).strip(" ['']") result = str(html.xpath('//*[@class="show-top-grids"]/div[1]/h5[5]/a/text()')).strip(" ['']")
print(result)
return result return result
except: except:
return '' return ''
@@ -21,7 +19,6 @@ def getStudio_fc2com(htmlcode): #获取厂商
try: try:
html = etree.fromstring(htmlcode, etree.HTMLParser()) html = etree.fromstring(htmlcode, etree.HTMLParser())
result = str(html.xpath('//*[@class="show-top-grids"]/div[1]/h5[3]/a[1]/text()')).strip(" ['']") result = str(html.xpath('//*[@class="show-top-grids"]/div[1]/h5[3]/a[1]/text()')).strip(" ['']")
print(result)
return result return result
except: except:
return '' return ''
@@ -38,7 +35,6 @@ def getCover_fc2com(htmlcode2): #获取img #
html = etree.fromstring(htmlcode2, etree.HTMLParser()) html = etree.fromstring(htmlcode2, etree.HTMLParser())
imgUrl = str(html.xpath('//*[@class="slides"]/li[1]/img/@src')).strip(" ['']") imgUrl = str(html.xpath('//*[@class="slides"]/li[1]/img/@src')).strip(" ['']")
imgUrl = imgUrl.replace('../','https://fc2club.net/') imgUrl = imgUrl.replace('../','https://fc2club.net/')
print(imgUrl)
return imgUrl return imgUrl
def getTag_fc2com(htmlcode): #获取tag def getTag_fc2com(htmlcode): #获取tag
html = etree.fromstring(htmlcode,etree.HTMLParser()) html = etree.fromstring(htmlcode,etree.HTMLParser())
@@ -63,9 +59,7 @@ def main(number):
try: try:
number = number.replace('FC2-', '').replace('fc2-', '') number = number.replace('FC2-', '').replace('fc2-', '')
webUrl = 'https://fc2club.net/html/FC2-' + number + '.html' webUrl = 'https://fc2club.net/html/FC2-' + number + '.html'
#print(webUrl)
htmlcode2 = ADC_function.get_html(webUrl) htmlcode2 = ADC_function.get_html(webUrl)
#print(htmlcode2)
actor = getActor_fc2com(htmlcode2) actor = getActor_fc2com(htmlcode2)
if getActor_fc2com(htmlcode2) == '': if getActor_fc2com(htmlcode2) == '':
actor = 'FC2系列' actor = 'FC2系列'

View File

@@ -49,7 +49,7 @@ max_title_len=50
update_check=1 update_check=1
[priority] [priority]
website=javbus,airav,jav321,fanza,xcity,mgstage,fc2,avsox,dlsite,carib,fc2club,madou,mv91,getchu,javdb,gcolle website=javbus,airav,jav321,fanza,xcity,mgstage,fc2,avsox,dlsite,carib,madou,mv91,getchu,javdb,gcolle
[escape] [escape]
literals=\()/ literals=\()/