forked from joepie91/node-bhttp
14 lines
354 B
JavaScript
14 lines
354 B
JavaScript
var bhttp = require("./");
|
|
var stockName = "AAPL";
|
|
var debug = require("debug")("testcase1");
|
|
var util = require("util");
|
|
|
|
bhttp.get('http://finance.yahoo.com/q/ks?s=' + stockName + '+Key+Statistics', { stream: false }, function(err, res) {
|
|
if(err) {
|
|
debug('ERROR: ' + err)
|
|
return callback(err)
|
|
} else {
|
|
debug('res: ' + util.inspect(res))
|
|
}
|
|
})
|