feat: add Camoufox browser runtime support#1902
Open
harshit0605 wants to merge 1 commit intounclecode:developfrom
Open
feat: add Camoufox browser runtime support#1902harshit0605 wants to merge 1 commit intounclecode:developfrom
harshit0605 wants to merge 1 commit intounclecode:developfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds optional Camoufox browser runtime support to Crawl4AI while keeping the PR scoped to the upstream-ready core runtime, docs, and tests.
browser_runtime="camoufox"andcamoufox_optionsonBrowserConfigBrowserManagerstorage_stateList of files changed and why
crawl4ai/async_configs.py,crawl4ai/async_crawler_strategy.py,crawl4ai/browser_manager.py- add the Camoufox runtime path, config validation, and runtime-specific browser handling.pyproject.toml,uv.lock- add the optional Camoufox extra and refresh the lockfile.docs/examples/camoufox_example.py,docs/examples/camoufox_proxy_example.py- add runnable examples for dedicated, persistent, and proxy-backed Camoufox usage.docs/md_v2/advanced/camoufox-browser.md,docs/md_v2/core/browser-crawler-config.md,docs/md_v2/core/examples.md,mkdocs.yml- document the runtime, surface it in navigation, and link the new examples.tests/unit/test_camoufox_runtime.py,tests/regression/test_reg_camoufox.py- cover runtime validation/launch behavior and exercise the integration path with tighter skip conditions for missing local runtime prerequisites.How Has This Been Tested?
uv run --with pytest --with pytest-asyncio pytest -q tests/unit/test_camoufox_runtime.py tests/regression/test_reg_camoufox.pyChecklist: