Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2015 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/2e38bfd2bf09b976dff1 to your computer and use it in GitHub Desktop.
Save anonymous/2e38bfd2bf09b976dff1 to your computer and use it in GitHub Desktop.
var runBow = function(input, cb) {
if (input.url.match(/^https:\/\//i)) {
input.url = input.url.replace(/^https:\/\//i, 'http://');
}
async.map(input.url, bow.crawl, function(err, results) {
if (err) { console.log(err, "an error"); }
async.eachLimit(results, 20, bow.parseResults, function (result) {
console.log('done');
})
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment