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

Uploaded Source

Built Distribution

camoufox-0.3.8-py3-none-any.whl (60.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for camoufox-0.3.8.tar.gz
Algorithm Hash digest
SHA256 14eb63e0fdad51794286ef26abc22112d6effa665ab6f6aab3b20cae0c573f33
MD5 5f5456e7f1f90ec0183d3aa3580aa617
BLAKE2b-256 c266f71571e7ccb9bc029b37b09ca28e11b9cdc113ee1f44556b9b1e52d4b9c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: camoufox-0.3.8-py3-none-any.whl
  • Upload date:
  • Size: 60.4 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.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ad7defe161d07909326d8e922eadf228a4edff3400c41f37a64720a344b2b1f5
MD5 3eec376727f0e4edd987adaeeb67cbb9
BLAKE2b-256 1eb7e05455d1611907c0eb2faf2e8e206c5b0c2d85859d0c9892a8b7e4673d57

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