上传文件至 'plugin'
This commit is contained in:
parent
7f187cccae
commit
1ea71e4b1d
@ -27,8 +27,8 @@ class Spider(Spider):
|
|||||||
result = {}
|
result = {}
|
||||||
return result
|
return result
|
||||||
header = {
|
header = {
|
||||||
"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.54 Safari/537.36",
|
"User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1",
|
||||||
"Referer": "https://zhaoziyuan.me/"
|
"Referer": "https://zhaoziyuan.la/"
|
||||||
}
|
}
|
||||||
def detailContent(self,array):
|
def detailContent(self,array):
|
||||||
tid = array[0]
|
tid = array[0]
|
||||||
@ -38,7 +38,7 @@ class Spider(Spider):
|
|||||||
if len(url) > 0:
|
if len(url) > 0:
|
||||||
return self.ali.detailContent(array)
|
return self.ali.detailContent(array)
|
||||||
|
|
||||||
rsp = self.fetch('https://zhaoziyuan.me/'+tid)
|
rsp = self.fetch('https://zhaoziyuan.la/'+tid)
|
||||||
url = self.regStr(rsp.text,pattern)
|
url = self.regStr(rsp.text,pattern)
|
||||||
if len(url) == 0:
|
if len(url) == 0:
|
||||||
return ""
|
return ""
|
||||||
@ -53,7 +53,7 @@ class Spider(Spider):
|
|||||||
}
|
}
|
||||||
ja = []
|
ja = []
|
||||||
for tKey in map.keys():
|
for tKey in map.keys():
|
||||||
url = "https://zhaoziyuan.me/so?filename={0}&t={1}".format(key,tKey)
|
url = "https://zhaoziyuan.la/so?filename={0}&t={1}".format(key,tKey)
|
||||||
rsp = self.fetch(url,headers=self.header)
|
rsp = self.fetch(url,headers=self.header)
|
||||||
root = self.html(self.cleanText(rsp.text))
|
root = self.html(self.cleanText(rsp.text))
|
||||||
aList = root.xpath("//li[@class='clear']//a")
|
aList = root.xpath("//li[@class='clear']//a")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user