我正在使用cheerio.js和puppeteer.js跟随这个来尝试做一些基本的web抓取。当我试图在服务器端编写它时,我并没有完全遵循教程的做法,我的想法是让我的后端处理所有的抓取,然后在将来将数据传递到前端。server.js Your app is listening on port 8080 [Function]
get_page_details #get the info from xml website #get it from html有没有办法在第一次调用时将xml数据存储在一个变量(如@data = xml_data())中并返回下载的xml_data?在下一次对xml_data的后续调用中,它应该能够引用缓存的@data。