PYTHON中httpx爬取h2协议的问题
PYTHON中httpx爬取h2协议的问题,代码如下:import httpx
client = httpx.Client(http2=True)
response = client.get('https://spa16.scrape.center/')
print(response.text)
然后就报错了:
httpx.ConnectError: certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)
请问各位 是什么原因呢?该如何解决呢? 解决掉了 client = httpx.Client(http2=True,verify=False) 传参verify=False即可。 python小小白哟 发表于 2023-6-21 09:41
解决掉了 client = httpx.Client(http2=True,verify=False) 传参verify=False即可。
{:5_106:}
页:
[1]