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.3.tar.gz (64.9 kB view details)

Uploaded Source

Built Distribution

camoufox-0.4.3-py3-none-any.whl (70.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for camoufox-0.4.3.tar.gz
Algorithm Hash digest
SHA256 96e51a5b205d03d0bc18520594e4946f5db1ce3b810b124a15c5bc45c0be484e
MD5 8ba0b4bb583fb54340e3ae265dbecdf3
BLAKE2b-256 7fa1114b7c19d2265177ef6c451051d72dd171573018fed305a94f3676f6c633

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for camoufox-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3f47a9760f7043e47e02b7e3499c4ebb3444dfb384fc094d68051cdcb6b4aa68
MD5 90f553ad4f28483835785eefc1f34cc2
BLAKE2b-256 ca9eaa1b65b0dcc6ee77abca5aadbe6c41994e8df50ab8977b69d93b57b758b4

See more details on using hashes here.

Supported by

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