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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file camoufox-0.4.1.tar.gz
.
File metadata
- Download URL: camoufox-0.4.1.tar.gz
- Upload date:
- Size: 64.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 632fc106c106e9b9786e9a17cca728d0f5da09e13c9be6d42212b8c4d3022e0f |
|
MD5 | f2b2cf0b7b8335f3a43b286467ebbabb |
|
BLAKE2b-256 | ea4d2d8dd639b29bbade999d6ff36e901f397ed30bef96122804fabe88867488 |
File details
Details for the file camoufox-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: camoufox-0.4.1-py3-none-any.whl
- Upload date:
- Size: 70.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c3353bc6d94e7fcf92c046ef2a281aeb81aeb428b028979c43e674451416476 |
|
MD5 | 512921847b447fe0737b758927b98c19 |
|
BLAKE2b-256 | 3292f11f49b70652b530be7645cf3c4bd99c27ec2c294f6b645761b56ea13810 |