# -*- coding: utf-8 -*-"""
Created on Fri Apr 7 20:03:39 2017
@author: 罗干
同济大学土木大楼B406
"""import pandas_datareader.data as web
import numpy as np
import pandas as pd
goog=web.DataReader('GOOG',data_source='google',start='3/14/2017',end='4/14/2017')
outputfile='../go.xls'
goog.to_excel(outputfile)
Out[67]:
Open High Low Close Volume
Date2017-03-14843.64847.24840.80845.627801982017-03-15847.59848.63840.77847.2013814742017-03-16849.03850.85846.13848.789775602017-03-17851.61853.40847.11852.1217164712017-03-20850.01850.22845.15848.4012315212017-03-21851.40853.50829.02830.4624634842017-03-22831.91835.55827.18829.5914014652017-03-23821.00822.57812.26817.5834870562017-03-24820.08821.93808.89814.4319810062017-03-27806.95821.63803.37819.5118949902017-03-28820.41825.99814.03820.9216205422017-03-29825.00832.76822.38831.4117863212017-03-30833.50833.68829.00831.5010553392017-03-31828.97831.64827.39829.5614018932017-04-03829.22840.85829.22838.5516715032017-04-04831.36835.18829.04834.5710453632017-04-05835.51842.45830.72831.4115553282017-04-06832.40836.39826.46827.881254433