Skip to content

Instantly share code, notes, and snippets.

@hansent
Created February 4, 2014 18:00
Show Gist options
  • Save hansent/8808945 to your computer and use it in GitHub Desktop.
Save hansent/8808945 to your computer and use it in GitHub Desktop.
var request = require('superagent');
var url = "www.fresklabs.com"
url = url.replace("http://", "");
url = url.replace("https://", "");
url = "http://textance.herokuapp.com/title/" + url;
request.get(url, function(err, res){
if (err) throw err;
console.log(res.text);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment