One - One Code All

Blog Content

python获取SSL证书忽略CA安全认证

Python   2018-09-24 11:25:59

上代码:

import urllib.request
import ssl
 
context = ssl._create_unverified_context()
 
url = yoururl
 
request = urllib.request.Request(url)
response = urllib.request.urlopen(url = request, context=context)
print (response.read().decode('utf-8'))



上一篇:Kubernetes taints 配置
下一篇:airflow升级后celery连接mq的方式不同

The minute you think of giving up, think of the reason why you held on so long.