From ff38707f74f83ea92ce8090bb791ed99c5e9a17c Mon Sep 17 00:00:00 2001 From: kurtlab Date: 2020年5月12日 16:37:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=9A=84=E5=9C=B0=E5=9D=80=E8=8E=B7=E5=8F=96=E8=A7=84=E5=88=99?= =?UTF-8?q?=E5=90=8E=E9=9D=A2=E4=BC=9A=E5=8A=A0=E4=B8=AA=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- download_cl1024_images.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/download_cl1024_images.py b/download_cl1024_images.py index ad16b67..15a0988 100644 --- a/download_cl1024_images.py +++ b/download_cl1024_images.py @@ -91,6 +91,7 @@ def __init__(self, root=None, **args): tk.Label(self.root, text='---代理功能更新中---').grid(row=row, column=1) + @thread_run def downloadnow(self): _input = self.entry.get().replace(' ', '') @@ -116,7 +117,13 @@ def prepare(self, downloadlinks): result.encoding = 'gbk' # pic_url = re.findall('"objURL":"(.*?)",', result.text, re.S) pic_url = re.findall("data-src='(.*?)'", result.text, re.S) - print(pic_url) + + if pic_url: + pic_url + print(pic_url) + else: + pic_url = re.findall("ess-data='(.*?)'", result.text, re.S) + print(pic_url) titles = re.findall('

(.+)

', result.text) print(titles) title = titles[0]

AltStyle によって変換されたページ (->オリジナル) /