Datareader无法读取URL

时间:2018-01-30 10:49:40

标签: python-3.x yahoo-finance datareader

试图获取'AAPL','GOOG','MFST','AMZN'的股票价格

from pandas_datareader import data
from datetime import datetime

tech_list = ['AAPL', 'GOOG', 'MFST', 'AMZN']
end = datetime.now()
start = datetime(end.year-1,end.month,end.day)

for stock in tech_list:
    globals()[stock] = data.DataReader(stock,'google', start, end)

收到错误 RemoteDataError:无法读取URL:http://www.google.com/finance/historical?q=AAPL&startdate=Jan+30%2C+2017&enddate=Jan+30%2C+2018&output=csv

有人可以帮助我做错了。感谢。

0 个答案:

没有答案