parent
a0d6d43aa6
commit
e22b3d5072
2
main.py
2
main.py
@ -146,6 +146,7 @@ def main():
|
||||
for website_info_index, website_info_row in website_info_data.iterrows():
|
||||
print("=start=>>", website_info_index, website_info_row["Url"])
|
||||
# 检测网站可用性,记录请求时间,完成数据拼接
|
||||
expiration_date=''
|
||||
try:
|
||||
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
|
||||
# 检测网站是否正常
|
||||
@ -153,7 +154,6 @@ def main():
|
||||
website_info_row["Url"], timeout=5, headers=headers
|
||||
)
|
||||
|
||||
expiration_date=''
|
||||
try:
|
||||
tmp_host = get_host_info(website_info_row["Url"])
|
||||
expiration_date_result = get_certificate_expiration_date(tmp_host)
|
||||
|
Loading…
Reference in New Issue
Block a user