requests.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed

前端 未结 1 767
孤街浪徒
孤街浪徒 2021-01-22 01:42

I cannot request a popular SSL site without geting the error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed.

The requests documentation states t

1条回答
  •  星月不相逢
    2021-01-22 02:18

    r = requests.get('https://www.example.com', proxies=proxies, verify=False)
    

    Change this line and it will work.

    0 讨论(0)
提交回复
热议问题