selenium 自动化过程遇到浏览器显示:您的连接不是私密连接的网站
1、如果是通过request请求的话,则在verify参数设置为False
res=requests.get(url,verify=False)
2、如果是通过selenium的话,则添加参数 --ignore-certificate-errors
options.add_argument('--ignore-certificate-errors')
webdriver=webdriver.Chrome(options=options)
本博客纯粹是学习过程中的笔记,部分来自转载或摘抄,如有侵权,请联系删除
email:18017870857@163.com