Reputation: 11
I am a french beginner in programming in python. When I want to import datas from yahoo finance i got this error :
`APPL = wb.DataReader('APPL', data_source = 'yahoo', start='2005-1-1')
here is the problem here is the problem Can you help me to resolve this ? Thank you
Upvotes: 1
Views: 81
Reputation: 351
It might be caused by Yahoo Finance changing its API.
Try pip install yfiance module:
pip install yfinance
If you're using Google Colab:
!pip install yfinance
The following code works for me currently:
import yfinance as yf
data = yf.download("AAPL", start="2005-1-1")
Upvotes: 1