Posted by: Sourav | May 26, 2017

Download Historical Stock Data using google finance ,python and pandas,Python Teacher Sourav,Kolkata 09748184075


import pandas_datareader.data as web
import datetime
start = datetime.datetime(2010, 1, 1)
end = datetime.datetime(2013, 1, 27)
f = web.DataReader(‘F’,’google’, start, end)
#print (f)
f.to_csv(“/home/sourav/google_finance_data.csv”)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: