Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use GOOGLE as a data source for pandas data reader?

I wanted to get the data from google source but i am encountering some error

here is my code --

from pandas_datareader import data
import datetime
start=datetime.datetime(2020,1,1)
end=datetime.datetime(2020,6,30)
print(data.DataReader("TSLA",'google',start,end))

Error I am encountering:

NotImplementedError                       Traceback (most recent call last)
<ipython-input-25-a7c6d692c622> in <module>
      1 start=datetime.datetime(2020,1,1)
      2 end=datetime.datetime(2020,6,30)
----> 3 print(data.DataReader("TSLA",'google',start,end))

c:\users\rishi\appdata\local\programs\python\python38-32\lib\site-packages\pandas\util\_decorators.py in wrapper(*args, **kwargs)
    212                 else:
    213                     kwargs[new_arg_name] = new_arg_value
--> 214             return func(*args, **kwargs)
    215 
    216         return cast(F, wrapper)

c:\users\rishi\appdata\local\programs\python\python38-32\lib\site-packages\pandas_datareader\data.py in DataReader(name, data_source, start, end, retry_count, pause, session, api_key)
    374     if data_source not in expected_source:
    375         msg = "data_source=%r is not implemented" % data_source
--> 376         raise NotImplementedError(msg)
    377 
    378     if data_source == "yahoo":

NotImplementedError: data_source='google' is not implemented
like image 366
Rishikesh-12 Avatar asked Oct 24 '25 13:10

Rishikesh-12


1 Answers

Prevalent opinion on the network is, that 'google' as data source has been discontinued.

Other sources, like yahoo and Alpha Vantage, do function.

like image 109
Helen Craigman Avatar answered Oct 26 '25 03:10

Helen Craigman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!