首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用pandas接收历史股票数据时出错

使用pandas接收历史股票数据时出错
EN

Stack Overflow用户
提问于 2021-07-09 16:11:59
回答 1查看 60关注 0票数 1

无法使用pandas_datareader.data从雅虎下载历史数据(谷歌无论如何都不提供)。同样的方法在大多数情况下都很好用,但自2021年7月以来就不是这样了。我的代码:

代码语言:javascript
复制
import pandas_datareader.data as web # including other required classes as per my requirement
def get_data(ticker, start_time, end_time):
    connected = False
    while not connected:
        try:
            df = web.get_data_yahoo(ticker, start=start_time, end=end_time)
            connected = True
            ........
        except Exception as e:
            ........
            pass   
    return df

我一直收到这个错误消息:

代码语言:javascript
复制
Unable to read URL... ( with the message.

Will be right back...</h1>\n      <p id="message-1">Thank you for your patience.</p>\n      <p id="message-2">Our engineers are working quickly to resolve the issue

...)

但他们已经很久没有能够纠正这个问题了。有没有人能提出一些替代方案或解决方法?

EN

回答 1

Stack Overflow用户

发布于 2021-07-09 16:21:49

这是一个关于yfinance的实际开放问题,你可以跟随开放的门票来获得更多的洞察力ISSUE #607

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68313378

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档