来自雅虎或Google的node.jsstream式财务数据

更新:我想不断接收数据。 目前,这返回一个数据集。 我认为唯一的select是轮询/ setInterval技术,只达到stream的效果。

是否有可能使用node.js从雅虎或谷歌检索stream财务数据?
我知道他们没有公开的API可用于我试图检索的数据。

我已经写了这个使用快递,但数据不是stream。

var express = require('express'), http = require('http'), app = express.createServer(); // Using either Google or Yahoo... var client = http.createClient(80,'download.finance.yahoo.com'); var request = client.request('GET', '/d/quotes.csv?s=GOOG&f=snr', { host: 'download.finance.yahoo.com' }); //var client = http.createClient(80,'www.google.com'); //var request = client.request('GET', '/finance/info?client=ig&q=CSCO', { host: 'www.google.com'}); request.end(); request.addListener('response', function (response) { response.setEncoding(encoding="utf8"); response.addListener('data', function (data) { console.log(data); }); response.addListener('end',function(data) { console.log('End'); }); }); app.listen(8080); 

Interesting Posts