Google data throws an error

"###################  Downlaoding S&P data ######################################

Df= web.DataReader('SPY', data_source='google')"

At the end of the course, I have got a code files for download. the line mentioned aboive is not working it throwing an error.

What is th reason?

The Google finance web reader has recently stopped working. You can refer to following post on how to fix the problem.

https://quantra.quantinsti.com/questionDetails/53/Google-Finance-DATA-ERROR

Thanks!

Ishan

yahoo as well not working!

Google has changed the URL to fetch data to http://finance.google.com/finance/historical from www.google.com/finance/historical. You may modify the URL and use your own version of pandas_datareader. Since the URL is set in the source code: https://github.com/pydata/pandas-datareader/tree/master/pandas_datareader/google. Alternatively, you can upgrade the pandas_datareader. Syntax: !pip install pandas_datareader --upgrade