【笔记整理】忽略https证书校验

import requests


url = "https://sam.huat.edu.cn:8443/selfservice/"
# 默认不忽略ssl证书,如果有证书问题的网站会报错
# response = requests.get(url)

# 设置verify=False就会忽略掉,只给出一个警告日志
response = requests.get(url, verify=False)

print(response.content)

posted @ 2023-07-17 11:05  蕝戀  阅读(377)  评论(0编辑  收藏  举报