Javascript – Only keep the elements with text in them and remove all other elements
I am trying to scrape a website using puppeteer and cheerio. I have gotten the html of the page I want to scrape using puppeteer. I have loaded that html into cheerio. async function run() { const browser = await…