Last active
May 18, 2016 18:03
-
-
Save adrianosferreira/2f2f817f93709ed83096d07f5c09009c to your computer and use it in GitHub Desktop.
This file contains 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('request'); | |
var theRequest = function(i){ | |
request('http://site.com/?page=' + i, function( err, res, body ) { | |
console.log('Finalizado ' + i); | |
}); | |
} | |
for (var i = 0; i <= 1000; i++) { | |
theRequest(i); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment