我正在运行以下代码,其中url为http,而url1为https。
r = requests.get(url)
data = r.json()
currstatus=pd.DataFrame(data)
r = requests.get(url1)
data1 = r.json()
tms=pd.DataFrame(data1["Response"])
我的http正在获取数据,但是尝试从https url获取数据时出现以下错误。
File "C:\Users\MUJEEB UR REHMAN\Anaconda3\lib\site-
packages\requests\adapters.py", line 502, in send
raise ProxyError(e, request=request)
ProxyError: HTTPSConnectionPool(host='host name', port=443): Max retries
exceeded with url: [some credentials] (Caused by ProxyError('Cannot connect
to proxy.', NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection
object at 0x000002B98468AB38>: Failed to establish a new connection: [Errno
11001] getaddrinfo failed',)))