Created
October 17, 2012 21:14
-
-
Save hunterloftis/3908231 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 base = 'http://eadoyle.tumblr.com/page/'; | |
for (var i = 0; i <= 97; i++) { | |
tryPage(base + i); | |
} | |
function tryPage(url) { | |
request.get(url, function(res) { | |
if (res.text.toLowerCase().indexOf('portal') !== -1) { | |
console.log("Found portal:", url); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment