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

View File

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