程序之前运行都正常,但今天不行。基本代码如下:
import tushare as ts
ts.set_token('11137xxxxxxx') #(自己申请的token)
pro = ts.pro_api()
# df = pro.daily(ts_code='601318.SH', start_date='20220101', end_date='20221231')
错误信息如下:
TPConnectionPool(host=‘api.waditu.com’, port=80): Max retries exceeded with url: / (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7f8228518310>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))
大家遇到类似问题了吗? 如何解决?