0

我是 python 的新手,非常感谢在这个问题上的帮助。

我正在使用requestskodi addon.

我试过穿上但没有verify=Falseget

s = requests.Session()

file = s.get(api_base + '/api/v2/mounts/' + mount['id'] + '/files/download', params = {'path': foldername + '/' + file['name']}, verify=False).json()['link']

我出现以下错误:

SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures.
4

1 回答 1

0

安装请求额外的安全包。

pip install requests[security]

这将安装此处提到的所需 SSL 包。

于 2016-03-21T14:06:31.117 回答