Camoufox

0.4.11 · active · verified Sun Apr 12

Camoufox is a Python wrapper around Playwright designed to launch a stealth, anti-fingerprinting browser. It's built for web scraping and automation, providing advanced features to bypass detection. Currently at version 0.4.11, the project is in active and rapid development, with frequent beta releases for both the Python library and the underlying browser builds.

Warnings

Install

Imports

Quickstart

Launches a Camoufox browser instance (visible by default), navigates to a page, prints its title, takes a screenshot, and then closes the browser. This demonstrates basic browser automation with Camoufox.

import asyncio
from camoufox import launch

async def main():
    # headless=False launches a visible browser; set to True for background operation
    browser = await launch(headless=False)
    page = await browser.new_page()
    await page.goto("https://www.example.com")
    print(f"Page title: {await page.title()}")
    await page.screenshot(path="example.png")
    await browser.close()

if __name__ == '__main__':
    asyncio.run(main())

view raw JSON →