Skip to content

Instantly share code, notes, and snippets.

@fiveisprime
Created April 22, 2014 01:41
Show Gist options
  • Save fiveisprime/11162662 to your computer and use it in GitHub Desktop.
Save fiveisprime/11162662 to your computer and use it in GitHub Desktop.
Recursive run.
!function runGet(url) {
request(url, function (err, response, body) {
if (err) {
throw err;
}
if (body.url) {
runGet(body.url);
}
});
}('initial-url');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment