Skip to content

Instantly share code, notes, and snippets.

@neurobashing
Created March 28, 2012 21:22
Show Gist options
  • Save neurobashing/2230708 to your computer and use it in GitHub Desktop.
Save neurobashing/2230708 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var http = require('http');
var options = {
host: 'www.reddit.com',
port: 80,
path: '/r/programming/.json'
}
http.get(options, function(res){
res.on('data', function(chunk){
console.log(chunk.toString()); // LOL JSON DATA
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment