What is Cheerio in JavaScript?

Cheerio is a fast, lean implementation of core jQuery. It helps in traversing the DOM using a friendly and familiar API and works both in the browser and the server. It simply parses the HTML and XML and does not execute any Javascript in the document or load any external resources. This makes Cheerio extremely fast when compared to full browser automation tools like Puppeteer and Selenium. However, if a project requires executing Javascript on the page or executing background XHR requests then Cheerio is not the right tool for the job.

Related Cheerio web scraping questions: