Files
2026-07-13 13:23:39 +08:00

19 lines
467 B
TypeScript

import { PlaywrightCrawler } from 'crawlee';
import { launchOptions } from 'camoufox-js';
import { firefox } from 'playwright';
const crawler = new PlaywrightCrawler({
postNavigationHooks: [
async ({ handleCloudflareChallenge }) => {
await handleCloudflareChallenge();
},
],
launchContext: {
launcher: firefox,
launchOptions: await launchOptions({
headless: true,
}),
},
// ...
});