fix small bug
This commit is contained in:
@@ -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())
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user