I use the request
module as follows:
var request = require("request"); var url = "http://www.google.com"; //... request(url, function(error, response, body) { var step1 = body.replace(/<.+?>/g, ''); //... console.log(step3);
Data is collected, but I cannot match the original request with the answer. I thought that it was necessary to include the contents of the url
variable in the data inside the anonymous function. But how to do it, I do not understand.
What can be done to display url -> response
pairs?