Skip to content

Instantly share code, notes, and snippets.

@glappen
Created October 7, 2014 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glappen/685537016456b2110597 to your computer and use it in GitHub Desktop.
Save glappen/685537016456b2110597 to your computer and use it in GitHub Desktop.
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