From 6abc9dfc2638f4c59f8b16bb82858831e0934c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B8=A2=E4=BD=8E=E5=90=B8?= Date: Tue, 18 Jul 2023 02:53:16 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20165=20=E4=B8=8D=E7=9F=A5?= =?UTF-8?q?=E9=81=93=E5=88=B0=E5=BA=95=E8=A6=81=E4=B8=8D=E8=A6=81=E5=8A=A0?= =?UTF-8?q?=20protocol=20=E7=88=9B=E9=80=8F=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoBuild/tw_165.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AutoBuild/tw_165.py b/AutoBuild/tw_165.py index 1bace83..cf4cb18 100644 --- a/AutoBuild/tw_165.py +++ b/AutoBuild/tw_165.py @@ -39,14 +39,14 @@ def main(): raise domains = dict.fromkeys([ - urlparse('http://'+row['WEBURL']).hostname + urlparse(row['WEBURL']).hostname if row['WEBURL'].startwith('http') else urlparse('http://'+row['WEBURL']).hostname for row in r_json[1:] ]) r = fetchdata(csvurl) domains.update(dict.fromkeys( [ - urlparse('http://'+x.split(',')[1]).hostname + urlparse(x.split(',')[1]).hostname if x.split(',')[1].startwith('http') else urlparse('http://'+x.split(',')[1]).hostname for x in r.text.splitlines()[2:] ] ))