Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
test: revert unwanted changes to fix tests
Martin Adámek7955c887cfe4
diff --git a/packages/cheerio-crawler/src/internals/cheerio-crawler.ts b/packages/cheerio-crawler/src/internals/cheerio-crawler.tsindex f834adf5e..205aa904d 100644--- a/packages/cheerio-crawler/src/internals/cheerio-crawler.ts+++ b/packages/cheerio-crawler/src/internals/cheerio-crawler.ts@@ -171,7 +171,9 @@ export class CheerioCrawler extends HttpCrawler<CheerioCrawlingContext> {return {dom,$,- body: (dom as Buffer).toString('utf8'),+ get body() {+ return isXml ? $!.xml() : $!.html({ decodeEntities: false });+ },enqueueLinks: async (enqueueOptions?: EnqueueLinksOptions) => {return cheerioCrawlerEnqueueLinks({options: enqueueOptions,