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.

docs: fix gif leaking desktop, being too compressed, and showing a random `;` (#1625)

Vlad Frangua6d80860b172
diff --git a/docs/introduction/01-setting-up.mdx b/docs/introduction/01-setting-up.mdx
index 01e17f700..a69852298 100644
--- a/docs/introduction/01-setting-up.mdx
+++ b/docs/introduction/01-setting-up.mdx
@@ -82,10 +82,10 @@ For the sake of this show off, we've slowed down the crawler, but rest assured,
<ThemedImage
alt="An image showing off Crawlee scraping the Crawlee website using Puppeteer/Playwright and Chromium"
sources={{
- light: '/img/chrome-scrape-light-compressed.gif',
- dark: '/img/chrome-scrape-dark-compressed.gif',
+ light: '/img/chrome-scrape-light.gif',
+ dark: '/img/chrome-scrape-dark.gif',
}}
-/>;
+/>
## Next lesson
diff --git a/docs/quick-start/index.mdx b/docs/quick-start/index.mdx
index 3a9b7ee96..869e06b47 100644
--- a/docs/quick-start/index.mdx
+++ b/docs/quick-start/index.mdx
@@ -138,10 +138,10 @@ For the sake of this show off, we've slowed down the crawler, but rest assured,
<ThemedImage
alt="An image showing off Crawlee scraping the Crawlee website using Puppeteer/Playwright and Chromium"
sources={{
- light: '/img/chrome-scrape-light-compressed.gif',
- dark: '/img/chrome-scrape-dark-compressed.gif',
+ light: '/img/chrome-scrape-light.gif',
+ dark: '/img/chrome-scrape-dark.gif',
}}
-/>;
+/>
## Results
diff --git a/website/static/img/chrome-scrape-dark-compressed.gif b/website/static/img/chrome-scrape-dark-compressed.gif
deleted file mode 100644
index aaf6c16fd..000000000
Binary files a/website/static/img/chrome-scrape-dark-compressed.gif and /dev/null differ
diff --git a/website/static/img/chrome-scrape-dark.gif b/website/static/img/chrome-scrape-dark.gif
new file mode 100644
index 000000000..b285e4623
Binary files /dev/null and b/website/static/img/chrome-scrape-dark.gif differ
diff --git a/website/static/img/chrome-scrape-light-compressed.gif b/website/static/img/chrome-scrape-light-compressed.gif
deleted file mode 100644
index e6fd44858..000000000
Binary files a/website/static/img/chrome-scrape-light-compressed.gif and /dev/null differ
diff --git a/website/static/img/chrome-scrape-light.gif b/website/static/img/chrome-scrape-light.gif
new file mode 100644
index 000000000..78d4c2390
Binary files /dev/null and b/website/static/img/chrome-scrape-light.gif differ
diff --git a/website/tools/website_gif/chrome-scrape-dark.gif b/website/tools/website_gif/chrome-scrape-dark.gif
index 7f99b2e36..b285e4623 100644
Binary files a/website/tools/website_gif/chrome-scrape-dark.gif and b/website/tools/website_gif/chrome-scrape-dark.gif differ
diff --git a/website/tools/website_gif/chrome-scrape-dark.mp4 b/website/tools/website_gif/chrome-scrape-dark.mp4
index 7fb4b0cf5..8c0b3a033 100644
Binary files a/website/tools/website_gif/chrome-scrape-dark.mp4 and b/website/tools/website_gif/chrome-scrape-dark.mp4 differ
diff --git a/website/tools/website_gif/chrome-scrape-light.gif b/website/tools/website_gif/chrome-scrape-light.gif
index ed7ee4014..78d4c2390 100644
Binary files a/website/tools/website_gif/chrome-scrape-light.gif and b/website/tools/website_gif/chrome-scrape-light.gif differ
diff --git a/website/tools/website_gif/chrome-scrape-light.mp4 b/website/tools/website_gif/chrome-scrape-light.mp4
index 3c018b968..e13f4b33d 100644
Binary files a/website/tools/website_gif/chrome-scrape-light.mp4 and b/website/tools/website_gif/chrome-scrape-light.mp4 differ
diff --git a/website/tools/website_gif/website_gif.mjs b/website/tools/website_gif/website_gif.mjs
index 919c3584d..4c4f48313 100644
--- a/website/tools/website_gif/website_gif.mjs
+++ b/website/tools/website_gif/website_gif.mjs
@@ -7,7 +7,7 @@
* 4. Resume, record, ???, profit!
*/
-import { PuppeteerCrawler, RequestQueue, sleep } from 'crawlee';
+import { PuppeteerCrawler, sleep } from 'crawlee';
const crawler = new PuppeteerCrawler({
headless: false,
@@ -20,10 +20,10 @@ const crawler = new PuppeteerCrawler({
},
async requestHandler({ request }) {
if (request.userData.label === 'start') {
- console.log('Waiting 10s, prepare recording!');
- await sleep(10000); // <--- Set breakpoint here
+ console.log('Waiting 5s, prepare recording!');
+ await sleep(5000); // <--- Set breakpoint here
} else {
- await sleep(2500); // <--- Set breakpoint here for initial request, remove after
+ await sleep(250);
}
},
});
diff --git a/website/versioned_docs/version-3.0/introduction/01-setting-up.mdx b/website/versioned_docs/version-3.0/introduction/01-setting-up.mdx
index 4ac8fb3e3..9257a4ce9 100644
--- a/website/versioned_docs/version-3.0/introduction/01-setting-up.mdx
+++ b/website/versioned_docs/version-3.0/introduction/01-setting-up.mdx
@@ -82,10 +82,10 @@ For the sake of this show off, we've slowed down the crawler, but rest assured,
<ThemedImage
alt="An image showing off Crawlee scraping the Crawlee website using Puppeteer/Playwright and Chromium"
sources={{
- light: '/img/chrome-scrape-light-compressed.gif',
- dark: '/img/chrome-scrape-dark-compressed.gif',
+ light: '/img/chrome-scrape-light.gif',
+ dark: '/img/chrome-scrape-dark.gif',
}}
-/>;
+/>
## Next lesson
diff --git a/website/versioned_docs/version-3.0/quick-start/index.mdx b/website/versioned_docs/version-3.0/quick-start/index.mdx
index 3a9b7ee96..869e06b47 100644
--- a/website/versioned_docs/version-3.0/quick-start/index.mdx
+++ b/website/versioned_docs/version-3.0/quick-start/index.mdx
@@ -138,10 +138,10 @@ For the sake of this show off, we've slowed down the crawler, but rest assured,
<ThemedImage
alt="An image showing off Crawlee scraping the Crawlee website using Puppeteer/Playwright and Chromium"
sources={{
- light: '/img/chrome-scrape-light-compressed.gif',
- dark: '/img/chrome-scrape-dark-compressed.gif',
+ light: '/img/chrome-scrape-light.gif',
+ dark: '/img/chrome-scrape-dark.gif',
}}
-/>;
+/>
## Results
diff --git a/website/versioned_docs/version-3.1/introduction/01-setting-up.mdx b/website/versioned_docs/version-3.1/introduction/01-setting-up.mdx
index 01e17f700..a69852298 100644
--- a/website/versioned_docs/version-3.1/introduction/01-setting-up.mdx
+++ b/website/versioned_docs/version-3.1/introduction/01-setting-up.mdx
@@ -82,10 +82,10 @@ For the sake of this show off, we've slowed down the crawler, but rest assured,
<ThemedImage
alt="An image showing off Crawlee scraping the Crawlee website using Puppeteer/Playwright and Chromium"
sources={{
- light: '/img/chrome-scrape-light-compressed.gif',
- dark: '/img/chrome-scrape-dark-compressed.gif',
+ light: '/img/chrome-scrape-light.gif',
+ dark: '/img/chrome-scrape-dark.gif',
}}
-/>;
+/>
## Next lesson
diff --git a/website/versioned_docs/version-3.1/quick-start/index.mdx b/website/versioned_docs/version-3.1/quick-start/index.mdx
index 3a9b7ee96..869e06b47 100644
--- a/website/versioned_docs/version-3.1/quick-start/index.mdx
+++ b/website/versioned_docs/version-3.1/quick-start/index.mdx
@@ -138,10 +138,10 @@ For the sake of this show off, we've slowed down the crawler, but rest assured,
<ThemedImage
alt="An image showing off Crawlee scraping the Crawlee website using Puppeteer/Playwright and Chromium"
sources={{
- light: '/img/chrome-scrape-light-compressed.gif',
- dark: '/img/chrome-scrape-dark-compressed.gif',
+ light: '/img/chrome-scrape-light.gif',
+ dark: '/img/chrome-scrape-dark.gif',
}}
-/>;
+/>
## Results