雅虎获取不了数据了,也是显示API不支持怎么办??
来源:7-2 股票市场分析实战之数据获取

慕用2243316
2018-07-14
ImmediateDeprecationError Traceback (most recent call last)<ipython-input-10-abcea4711f96> in <module>()----> 1 ali = pdr.get_data_yahoo("BABA")C:\Anaconda3\lib\site-packages\pandas_datareader\data.py in get_data_yahoo(*args, **kwargs) 61 62 ---> 63 def DataReader(name, data_source=None, start=None, end=None, 64 retry_count=3, pause=0.001, session=None, access_key=None): 65 """ImmediateDeprecationError:
Yahoo Actions has been immediately deprecated due to large breaks in the API without the
introduction of a stable replacement. Pull Requests to re-enable these data
connectors are welcome.
See https://github.com/pydata/pandas-datareader/issues
5回答
-
zxytxwdy
2018-08-27
from pandas_datareader import data as web
from datetime import datetime
start = datetime(2017, 1, 1)
end = datetime(2018, 8,27)
web.DataReader("BABA", "iex", start, end)
你可以试试这个代码
10 -
光与影的笔记
2018-07-15
http://pandas-datareader.readthedocs.io/en/latest/remote_data.html#remote-data-access
这里面有好多新的数据获取方法, 学分析应该够用了。
122018-07-15 -
光与影的笔记
2018-07-15
在 cmd 里 pip install fix_yahoo_finance
import fix_yahoo_finance as yf
yf.pdr_override('GOOG')
10 -
麦兜搞IT
2018-07-15
我刚试了试,还是可以用的。
052018-08-27 -
麦兜搞IT
2018-07-15
您可以试试下面同学的回答
022018-07-15
相似问题