Created
March 28, 2012 21:22
-
-
Save neurobashing/2230708 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
#!/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