akfamily / akshare

AKShare is an elegant and simple financial data interface library for Python, built for human beings! 开源财经数据接口库
https://akshare.akfamily.xyz
MIT License
9.46k stars 1.9k forks source link

stock_profit_forecast_em()报错 #4106

Closed tianhaisuifeng closed 1 year ago

tianhaisuifeng commented 1 year ago

最新版本,stock_profit_forecast_em()报错 服务器无反应: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='datacenter-web.eastmoney.com', port=443): Max retries exceeded with url: /api/data/v1/get?reportName=RPT_WEB_RESPREDICT&columns=WEB_RESPREDICT&pageNumber=1&pageSize=500&sortTypes=-1&sortColumns=RATING_ORG_NUM&p=1&pageNo=1&pageNum=1&filter=%28INDUSTRY_BOARD%3D%22%E8%88%AA%E8%BF%90%E6%B8%AF%E5%8F%A3%22%29 (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x000001BFB2D98040>: Failed to establish a new connection: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。'))

tianhaisuifeng commented 1 year ago

现在可以了,估计是服务器问题。