I am using diffbot api along in for loop
this is my code
for (var i = 0; i< 200; i++){
/* pass url from diffbot */
console.log("Ready to send Url for parsing to Diffbot ");
diffbot.article({ uri: url }, function(err, response) {
if (!err) {
console.log(i);
} else {
console.log("Error Occur in url " + i + "and error is " + err);
/* need to Add logic for parsing */
}
});
}
Now I got console message like
output is coming
200
200
200
200
200
two hundred times.
output is expected 0 to 199
Does any body tell me where I am wrong
Thanks