我遇到了这个检索股票报价的谷歌API。我不确定谷歌在哪里使用这个API。
但这是什么类型的序列化。它不是JSON,xml或协议缓冲区,我们如何解码这种序列化。我在Yahoo API中也看到了相同的东西,所以认为这应该是众所周知的,我可以从中得到答案。
http://www.google.com/finance/getprices?q=AAPL&i=60&p=5d&f=d,c,o,h,l&df=cpct&auto=1&ts=1266701290218
EXCHANGE%3DNASDAQ
MARKET_OPEN_MINUTE=570
MARKET_CLOSE_MINUTE=960
INTERVAL=60
COLUMNS=DATE,CLOSE,HIGH,LOW,OPEN
DATA=
TIMEZONE_OFFSET=-300
a1420641000,107.2,107.29,107.14,107.2
1,107.18,107.27,107.08,107.18
2,107.021,107.38,107.021,107.19
3,106.955,107.0399,106.82,107.02
4,106.76,107.07,106.75,106.95
5,107.08,107.16,106.695,106.75
6,107.16,107.299,106.94,107.08
7,107.22,107.35,107.14,107.161
8,107.46,107.5,107.11,107.22
9,107.41,107.5,107.38,107.46
10,107.33,107.46,107.17,107.4152
11,107.28,107.42,107.25,107.31
12,107,107.3099,106.97,107.28
13,107.1854,107.22,107,107
14,107.2174,107.22,107.14,107.181
15,107.46,107.47,107.22,107.22
16,107.36,107.45,107.26,107.45
17,107.53,107.68,107.32,107.36
18,107.591,107.69,107.43,107.51
19,107.69,107.7,107.56,107.6
20,107.65,107.705,107.57,107.699
21,107.6916,107.7,107.59,107.65
22,107.75,107.76,107.62,107.7
23,107.84,107.84,107.7099,107.749
24,107.871,107.9,107.82,107.83