pycurl https error: unable to get local issuer certificate
在 pycurl 访问 https 链接时可能会报: pycurl.error: (60, ‘SSL certificate problem: unable to get local issuer certificate’) 错误 一个比较好的解决方法是:
import pycurl
import certifi
curl = pycurl.Curl()
curl.setopt(pycurl.CAINFO, certifi.where())
curl.setopt(pycurl.URL, 'https://www.quora.com')
curl.perform()
local_offer #python
navigate_before Python 讨厌的MemoryError navigate_next pycurl 快速开始指南