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
Improve docs
Ondra Urban1ad2e69d2184
diff --git a/src/puppeteer_utils.js b/src/puppeteer_utils.jsindex 909fa80aa..1466392b1 100644--- a/src/puppeteer_utils.js+++ b/src/puppeteer_utils.js@@ -90,6 +90,8 @@ const injectFile = async (page, filePath, options = {}) => {* other libraries included by the page that use the same variable name (e.g. another version of jQuery).* This can affect functionality of page's scripts.*+ * The injected jQuery will survive page navigations and reloads.+ ** **Example usage:*** ```javascript* await Apify.utils.puppeteer.injectJQuery(page);@@ -121,6 +123,8 @@ const injectJQuery = (page) => {* libraries included by the page that use the same variable name.* This can affect functionality of page's scripts.*+ * The injected Underscore will survive page navigations and reloads.+ ** **Example usage:*** ```javascript* await Apify.utils.puppeteer.injectUnderscore(page);