fix small bug

This commit is contained in:
yoshiko2
2021-04-22 03:25:17 +08:00
parent f761e5bccc
commit 3ffef99e31
2 changed files with 3 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ from bs4 import BeautifulSoup#need install
import json import json
from ADC_function import * from ADC_function import *
from WebCrawler import fanza from WebCrawler import fanza
import airav from WebCrawler import airav
def getActorPhoto(htmlcode): #//*[@id="star_qdt"]/li/a/img def getActorPhoto(htmlcode): #//*[@id="star_qdt"]/li/a/img
soup = BeautifulSoup(htmlcode, 'lxml') soup = BeautifulSoup(htmlcode, 'lxml')
@@ -85,8 +85,7 @@ def getOutline(number): #获取演员
response = json.loads(airav.main(number)) response = json.loads(airav.main(number))
result = response['outline'] result = response['outline']
return result return result
except Exception as e: except:
print(e)
return '' return ''
def getSerise(htmlcode): #获取系列 已修改 def getSerise(htmlcode): #获取系列 已修改
html = etree.fromstring(htmlcode, etree.HTMLParser()) html = etree.fromstring(htmlcode, etree.HTMLParser())

View File

@@ -3,7 +3,7 @@ sys.path.append('../')
import json import json
import bs4 import bs4
import re import re
import airav from WebCrawler import airav
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from lxml import html from lxml import html
from http.cookies import SimpleCookie from http.cookies import SimpleCookie