🐛 165 不知道到底要不要加 protocol 爛透了

This commit is contained in:
踢低吸 2023-07-18 02:53:16 +00:00
parent 34b8d89f1d
commit 6abc9dfc26

View File

@ -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:]
]
))