Skip to main content

Wrapper around Playwright to help launch Camoufox

Project description

Camoufox Python Interface

Lightweight wrapper around the Playwright API to help launch Camoufox.

[!NOTE] All the the latest documentation is avaliable here.


What is this?

This Python library wraps around Playwright's API to help automatically generate & inject unique device characteristics (OS, CPU info, navigator, fonts, headers, screen dimensions, viewport size, WebGL, addons, etc.) into Camoufox.

It uses BrowserForge under the hood to generate fingerprints that mimic the statistical distribution of device characteristics in real-world traffic.

In addition, it will also calculate your target geolocation, timezone, and locale to avoid proxy protection (see demo).


Installation

First, install the camoufox package:

pip install -U camoufox[geoip]

The geoip parameter is optional, but heavily recommended if you are using proxies. It will download an extra dataset to determine the user's longitude, latitude, timezone, country, & locale.

Next, download the Camoufox browser:

Windows

camoufox fetch

MacOS & Linux

python3 -m camoufox fetch

To uninstall, run camoufox remove.

CLI options
Usage: python -m camoufox [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  fetch    Fetch the latest version of Camoufox
  path     Display the path to the Camoufox executable
  remove   Remove all downloaded files
  server   Launch a Playwright server
  test     Open the Playwright inspector
  version  Display the current version

Usage

All of the latest documentation is avaliable at camoufox.com/python.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

camoufox-0.4.11.tar.gz (64.4 kB view details)

Uploaded Source

Built Distribution

camoufox-0.4.11-py3-none-any.whl (71.6 kB view details)

Uploaded Python 3

File details

Details for the file camoufox-0.4.11.tar.gz.

File metadata

  • Download URL: camoufox-0.4.11.tar.gz
  • Upload date:
  • Size: 64.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for camoufox-0.4.11.tar.gz
Algorithm Hash digest
SHA256 0a2c9d24ac5070c104e7c2b125c0a3937f70efa416084ef88afe94c32a72eebe
MD5 0c49d135bcb76f854a6486413c8639bb
BLAKE2b-256 d315e0a1b586e354ea6b8d6612717bf4372aaaa6753444d5d006caf0bb116466

See more details on using hashes here.

File details

Details for the file camoufox-0.4.11-py3-none-any.whl.

File metadata

  • Download URL: camoufox-0.4.11-py3-none-any.whl
  • Upload date:
  • Size: 71.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for camoufox-0.4.11-py3-none-any.whl
Algorithm Hash digest
SHA256 83864d434d159a7566990aa6524429a8d1a859cbf84d2f64ef4a9f29e7d2e5ff
MD5 98e6c36e36e963fcd8bc9763ecb59ce7
BLAKE2b-256 c67ba2f099a5afb9660271b3f20f6056ba679e7ab4eba42682266a65d5730f7e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page