Skip to content

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.

Fix typo in default selector

Ondra Urbanfb54f1d5efd6
diff --git a/src/puppeteer_utils.js b/src/puppeteer_utils.js
index a09044cb3..0cdaf530c 100644
--- a/src/puppeteer_utils.js
+++ b/src/puppeteer_utils.js
@@ -247,7 +247,7 @@ const enqueueLinks = async (...args) => {
if (args.length === 1) {
[{ page, selector = 'a', requestQueue, pseudoUrls, userData = {} }] = args;
} else {
- [page, selector = 'ą', requestQueue, pseudoUrls, userData = {}] = args;
+ [page, selector = 'a', requestQueue, pseudoUrls, userData = {}] = args;
if (logDeprecationWarning) {
log.warning('Passing individual arguments to enqueueLinks() is deprecated. '
+ 'Use an options object: enqueueLinks({ page, selector, requestQueue, pseudoUrls, userData }) instead.');