Created
February 4, 2014 18:00
-
-
Save hansent/8808945 to your computer and use it in GitHub Desktop.
This file contains hidden or 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('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