Created
May 9, 2014 22:43
-
-
Save thibauts/9661860bb1a6e6f2e168 to your computer and use it in GitHub Desktop.
Simpler way to get the contents of a webpage
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 request = require('request'); | |
request(process.argv[2], function(err, res, body) { | |
console.log(body); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment