Created
October 7, 2014 17:52
-
-
Save glappen/685537016456b2110597 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http') | |
var request = require('request') | |
http.get({host: 'odb.outbrain.com', path: '/utils/get?url=http%3A%2F%2Fwww.screenpay.com%2Foutbrain%2Fnews&widgetJSId=APP_1&key=SCREE847QHMI19G3ANGI9NHB35EBCOK&idx=0&user=3599&format=json', | |
headers: {'User-Agent': 'NodeJS'}}, function(adResp) { | |
var data = ''; | |
adResp.on('data', function(chunk) { | |
data += chunk; | |
}); | |
adResp.on('end', function() { | |
console.log(data); | |
}); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment