无法使用pandas_datareader.data从雅虎下载历史数据(谷歌无论如何都不提供)。同样的方法在大多数情况下都很好用,但自2021年7月以来就不是这样了。我的代码:
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我一直收到这个错误消息:
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
...)但他们已经很久没有能够纠正这个问题了。有没有人能提出一些替代方案或解决方法?
发布于 2021-07-09 16:21:49
这是一个关于yfinance的实际开放问题,你可以跟随开放的门票来获得更多的洞察力ISSUE #607。
https://stackoverflow.com/questions/68313378
复制相似问题