How to put scraping content to html (Node.js, cheerio)
问题 i need to scrapping some content, and added it to my html file. var request = require('request'); var cheerio = require('cheerio'); setInterval(function () { request('https://2ch.hk/rf/res/1490589.html', function (error, response, html) { if (!error && response.statusCode == 200) { var $ = cheerio.load(html); $('.post-message').each(function (i, element) { var a = $(this).text(); console.log(a); }); } }); }, 5000); Now, i have a parsed page to my console. But i dont understand, how to put in