我可以使用Puppeteer获取所有页面代码,但是我如何才能获得纯文本?没有标签?
const puppeteer = require('puppeteer');
(async() => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('https://google.com');
console.log(await page.content()); //Get all code
await browser.close();
})();