Skip to content

Instantly share code, notes, and snippets.

@thibauts
Created May 9, 2014 22:43
Show Gist options
  • Save thibauts/9661860bb1a6e6f2e168 to your computer and use it in GitHub Desktop.
Save thibauts/9661860bb1a6e6f2e168 to your computer and use it in GitHub Desktop.
Simpler way to get the contents of a webpage
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