1
0

ins!
Some checks failed
Haisto / push (push) Failing after 15m0s

This commit is contained in:
Haisto 2024-06-24 21:44:07 +08:00
parent a0d6d43aa6
commit e22b3d5072

View File

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