Is cheerio npm still the best choice for web scraping in Node.js? or How reliable is cheerio npm for

16 Replies, 1111 Views

Cheerio npm is still king for static stuff—no contest. But you’re right, it falls flat with React/AJAX.

If you’re scraping a mix of static and dynamic, maybe try axios + cheerio npm for the easy parts and then use a headless browser for the rest.

Also, for messy HTML, cheerio npm’s selectors are pretty robust, but sometimes you gotta clean the markup first. Maybe toss in a sanitizer lib?

Messages In This Thread



Users browsing this thread: 1 Guest(s)