Since yahoo discontinued their API support pandas datareader now fails
import pandas_datareader.data as web
import datetime
start = datetime.datetime(2016, 1, 1)
end = datetime.datetime(2017, 5, 17)
web.DataReader('GOOGL', 'yahoo', start, end)
HTTPError: HTTP Error 401: Unauthorized
is there any unofficial library allowing us to temporarily work around the problem? Anything on Quandl maybe?
The name of the fix_yahoo_finance package has been changed to yfinance. So you can try this code
import yfinance as yf
data = yf.download('MSFT', start = '2012-01-01', end='2017-01-01')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With