New to node. Curious why this give no response. It doesn't give an error log so I assume it's something to do with the request function not printing logs, I just don'd understand what could be doing that.var request = require('request')var cheerio = require('cheerio')const url = {uri: 'https://www.amazon.com'};request(url), function (error, response, body) {console.error('error:', error);console.log('statusCode:', response && response.statusCode); console.log('body:', body);};
Submitted May 09, 2020 at 03:13PM by LoraxStoleMyThorax
No comments:
Post a Comment