Python
Notes
browser_mode="custom"withcdp_urlattaches Crawl4AI to the browser you give it.use_managed_browser=Truemakes it drive that browser over CDP instead of through a Playwright launch. Leaving theasync withblock closes Crawl4AI’s connection only; the session runs until you stop it.- Crawl4AI is Playwright underneath and injects its own scripts, so it carries the stock-Playwright fingerprint. Use it on sites that don’t challenge automation.
- Pin the
crawl4aiversion you tested with. Its post-install step downloads a browser you won’t use. Harmless. - Crawl several URLs in one session. Creating the session is the expensive step.