मैं सिर्फ इसके लिए खोज शुरू कर दिया है और निम्नलिखित script .Basically यह गुजर रहा है विशेष उद्धरण में अजगर का उपयोग कर ऐतिहासिक वित्तीय डेटाबेस गूगल के लिए इसे पुनः प्राप्त करने के लिए एक अच्छा रास्ता मिल गया ।
def get_index(gindex, startdate=20040101):
"""
API wrapper for Google Domestic Trends data.
https://www.google.com/finance/domestic_trends
Available Indices:
'ADVERT', 'AIRTVL', 'AUTOBY', 'AUTOFI', 'AUTO', 'BIZIND', 'BNKRPT',
'COMLND', 'COMPUT', 'CONSTR', 'CRCARD', 'DURBLE', 'EDUCAT', 'INVEST',
'FINPLN', 'FURNTR', 'INSUR', 'JOBS', 'LUXURY', 'MOBILE', 'MTGE',
'RLEST', 'RENTAL', 'SHOP', 'TRAVEL', 'UNEMPL'
"""
base_url = 'http://www.google.com/finance/historical?q=GOOGLEINDEX_US:'
full_url = '%s%s&output=csv&startdate=%s' % (base_url, gindex, startdate)
dframe = read_csv(urlopen(full_url), index_col=0)
dframe.index = DatetimeIndex(dframe.index)
dframe = dframe.sort_index(0)
for col in dframe.columns:
if len(dframe[col].unique()) == 1:
dframe.pop(col)
if len(dframe.columns) == 1 and dframe.columns[0] == 'Close':
dframe.columns = [gindex]
return dframe[gindex]
ऐसा प्रतीत होता है कि वे int विशेषता से छुटकारा पा लिया। अगर मुझे "http://google.com/complete/search?output=toolbar&q=hello%20world" मिल गया है तो इसमें अभी डेटा विशेषता है। –
मैं सोच रहा था कि अभी भी कोई संबंधित आधिकारिक एपीआई उपलब्ध नहीं है (2014)। थोड़ी देर के लिए खोजा लेकिन अभी तक कुछ भी नहीं मिला। –