Micro-sheep / efinance

efinance 是一个可以快速获取基金、股票、债券、期货数据的 Python 库,回测以及量化交易的好帮手!🚀🚀🚀
MIT License
1.89k stars 477 forks source link

拉数据出错 #159

Open leolle opened 9 months ago

leolle commented 9 months ago

Hi, 用的是0.5.0版本,今天开始出现以下错误,请问怎么办? ConnectionError: HTTPSConnectionPool(host='push2his.eastmoney.com', port=443): Max retries exceeded with url: /api/qt/stock/kline/get?fields1=f1%2Cf2%2Cf3%2Cf4%2Cf5%2Cf6%2Cf7%2Cf8%2Cf9%2Cf10%2Cf11%2Cf12%2Cf13&fields2=f51%2Cf52%2Cf53%2Cf54%2Cf55%2Cf56%2Cf57%2Cf58%2Cf59%2Cf60%2Cf61&beg=20010102&end=20500101&rtntype=6&secid=1.510050&klt=101&fqt=1 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000019166541CC0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

Micro-sheep commented 9 months ago

Hi, 用的是0.5.0版本,今天开始出现以下错误,请问怎么办?

ConnectionError: HTTPSConnectionPool(host='push2his.eastmoney.com', port=443): Max retries exceeded with url: /api/qt/stock/kline/get?fields1=f1%2Cf2%2Cf3%2Cf4%2Cf5%2Cf6%2Cf7%2Cf8%2Cf9%2Cf10%2Cf11%2Cf12%2Cf13&fields2=f51%2Cf52%2Cf53%2Cf54%2Cf55%2Cf56%2Cf57%2Cf58%2Cf59%2Cf60%2Cf61&beg=20010102&end=20500101&rtntype=6&secid=1.510050&klt=101&fqt=1 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000019166541CC0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

有没有开代理,在国内开代理的话容易访问失败

leolle commented 9 months ago

重启一下路由器好了,但是以前从来没有出现过这种情况 。

On Mon, Jan 29, 2024 at 8:42 PM sheep @.***> wrote:

Hi, 用的是0.5.0版本,今天开始出现以下错误,请问怎么办?

ConnectionError: HTTPSConnectionPool(host='push2his.eastmoney.com', port=443): Max retries exceeded with url: /api/qt/stock/kline/get?fields1=f1%2Cf2%2Cf3%2Cf4%2Cf5%2Cf6%2Cf7%2Cf8%2Cf9%2Cf10%2Cf11%2Cf12%2Cf13&fields2=f51%2Cf52%2Cf53%2Cf54%2Cf55%2Cf56%2Cf57%2Cf58%2Cf59%2Cf60%2Cf61&beg=20010102&end=20500101&rtntype=6&secid=1.510050&klt=101&fqt=1 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000019166541CC0>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

有没有开代理,在国内开代理的话容易访问失败

— Reply to this email directly, view it on GitHub https://github.com/Micro-sheep/efinance/issues/159#issuecomment-1914619948, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADCJFUXU55LBU76TORNEPT3YQ6KKZAVCNFSM6AAAAABCPJXSOWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGYYTSOJUHA . You are receiving this because you authored the thread.Message ID: @.***>