Traceback (most recent call last):
File "C:\2023\短线每日计算\未命名4.py", line 40, in <module>
df = ak.fund_etf_hist_sina(symbol=STOCK)
File "C:\ProgramData\Anaconda3\lib\site-packages\akshare\fund\fund_etf_sina.py", line 122, in fund_etf_hist_sina
r = requests.get(url)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "C:\ProgramData\Anaconda3\lib\site-packages\requests\adapters.py", line 565, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='finance.sina.com.cn', port=443): Max retries exceeded with url: /realstock/company/sz300122/hisdata/klc_kl.js (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x000001FAC4DA31C0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) |