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.

Linting

Marek Trunkatb01f4d2813f3
diff --git a/test/basic_crawler.js b/test/basic_crawler.js
index f43150898..2c5f23990 100644
--- a/test/basic_crawler.js
+++ b/test/basic_crawler.js
@@ -182,9 +182,9 @@ describe('BasicCrawler', () => {
.withArgs(new Apify.Request(sources[2]), { forefront: true })
.returns(Promise.resolve({ requestId: 'id-2' }));
- const request0 = new Apify.Request(Object.assign({ id: 'id-0' }, sources[0] ));
- const request1 = new Apify.Request(Object.assign({ id: 'id-1' }, sources[1] ));
- const request2 = new Apify.Request(Object.assign({ id: 'id-2' }, sources[2] ));
+ const request0 = new Apify.Request(Object.assign({ id: 'id-0' }, sources[0]));
+ const request1 = new Apify.Request(Object.assign({ id: 'id-1' }, sources[1]));
+ const request2 = new Apify.Request(Object.assign({ id: 'id-2' }, sources[2]));
// 1st try
mock.expects('fetchNextRequest').once().returns(Promise.resolve(request0));