摘要:
背景:访问https接口,使用http代理 版本:requests: 2.31.0 从报错可以看出,是proxy相关的报错 调整代码,设定不使用代理,将http与https对应的proxy值置空即可(尝试过proxies = {},但此写法不生效) proxies = { 'http': '', ' 阅读全文
posted @ 2024-07-26 15:30
人间春风意
阅读(1346)
评论(0)
推荐(0)
摘要:
import requests # 请求接口 import ssl context = ssl.create_default_context() context.check_hostname = False context.verify_mode = ssl.CERT_NONE response = 阅读全文
posted @ 2024-07-26 13:39
人间春风意
阅读(83)
评论(0)
推荐(0)

浙公网安备 33010602011771号