From 1ea71e4b1dbed8b93a2a9e3aaa105235e843caa7 Mon Sep 17 00:00:00 2001 From: comeonbaby0122 <38131680@qq.com> Date: Sun, 25 Sep 2022 11:17:49 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20'plugin'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/py_zhaozy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/py_zhaozy.py b/plugin/py_zhaozy.py index f2039e0..b190658 100644 --- a/plugin/py_zhaozy.py +++ b/plugin/py_zhaozy.py @@ -27,8 +27,8 @@ class Spider(Spider): result = {} return result 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", - "Referer": "https://zhaoziyuan.me/" + "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.la/" } def detailContent(self,array): tid = array[0] @@ -38,7 +38,7 @@ class Spider(Spider): if len(url) > 0: 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) if len(url) == 0: return "" @@ -53,7 +53,7 @@ class Spider(Spider): } ja = [] 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) root = self.html(self.cleanText(rsp.text)) aList = root.xpath("//li[@class='clear']//a")