I wrote some code in node, it is going to get html from the website.
var request = requires ('request'); Var cheerio = is required ('Chirio'); Var path = requirement ('path'); 'Var FS = Requirement (' FS '); Var num = 0; Var arc = ''; (Var i = 0; i & lt; 20000; i ++) for {num ++; Var requrl = 'http://127.0.0.1/' + num + '.html'; Request (recurring, function (error, feedback, body) {if (error and response.statusCode == 200) {console.log (body); // body gain}}}}
I have just sent a request to get html from html 1.0000.html This is ok, but it soon gets stuck in about 1100.html
No error or exception in the console Does not thrive
No comments:
Post a Comment