<div align="center">
# Camoufox Python Interface
#### Lightweight wrapper around the Playwright API to help launch Camoufox.
</div>
> [!NOTE]
> All the the latest documentation is avaliable [here](https://camoufox.com/python).
---
## 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](https://github.com/daijro/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](https://i.imgur.com/UhSHfaV.png)).
---
## Installation
First, install the `camoufox` package:
```bash
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**
```bash
camoufox fetch
```
**MacOS & Linux**
```bash
python3 -m camoufox fetch
```
To uninstall, run `camoufox remove`.
<details>
<summary>CLI options</summary>
```
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
```
</details>
<hr width=50>
## Usage
All of the latest documentation is avaliable at [camoufox.com/python](https://camoufox.com/python).
Raw data
{
"_id": null,
"home_page": "https://camoufox.com/python",
"name": "camoufox",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "client, fingerprint, browser, scraping, injector, firefox, playwright",
"author": "daijro",
"author_email": "daijro.dev@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/84/c0/bdd615fa02cda723b67db930335f06996c0a14f0e020ef619329c7b07e5f/camoufox-0.4.9.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n\n# Camoufox Python Interface\n\n#### Lightweight wrapper around the Playwright API to help launch Camoufox.\n\n</div>\n\n> [!NOTE]\n> All the the latest documentation is avaliable [here](https://camoufox.com/python).\n\n---\n\n## What is this?\n\nThis 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.\n\nIt uses [BrowserForge](https://github.com/daijro/browserforge) under the hood to generate fingerprints that mimic the statistical distribution of device characteristics in real-world traffic.\n\nIn addition, it will also calculate your target geolocation, timezone, and locale to avoid proxy protection ([see demo](https://i.imgur.com/UhSHfaV.png)).\n\n---\n\n## Installation\n\nFirst, install the `camoufox` package:\n\n```bash\npip install -U camoufox[geoip]\n```\n\nThe `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.\n\nNext, download the Camoufox browser:\n\n**Windows**\n\n```bash\ncamoufox fetch\n```\n\n**MacOS & Linux**\n\n```bash\npython3 -m camoufox fetch\n```\n\nTo uninstall, run `camoufox remove`.\n\n<details>\n<summary>CLI options</summary>\n\n```\nUsage: python -m camoufox [OPTIONS] COMMAND [ARGS]...\n\nOptions:\n --help Show this message and exit.\n\nCommands:\n fetch Fetch the latest version of Camoufox\n path Display the path to the Camoufox executable\n remove Remove all downloaded files\n server Launch a Playwright server\n test Open the Playwright inspector\n version Display the current version\n```\n\n</details>\n\n<hr width=50>\n\n## Usage\n\nAll of the latest documentation is avaliable at [camoufox.com/python](https://camoufox.com/python).\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Wrapper around Playwright to help launch Camoufox",
"version": "0.4.9",
"project_urls": {
"Homepage": "https://camoufox.com/python",
"Repository": "https://github.com/daijro/camoufox"
},
"split_keywords": [
"client",
" fingerprint",
" browser",
" scraping",
" injector",
" firefox",
" playwright"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "10b2c6afbbedec3e249142377f5fa4e223c9c8ca37c66f234089f8e84de57744",
"md5": "4c1be45d651a43c07eaf7419315e11df",
"sha256": "ca941441bcfbd461c92970b633a4e9343b7043d1b737e41a6f8f1e9f36020865"
},
"downloads": -1,
"filename": "camoufox-0.4.9-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4c1be45d651a43c07eaf7419315e11df",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 71308,
"upload_time": "2024-12-13T07:01:38",
"upload_time_iso_8601": "2024-12-13T07:01:38.331907Z",
"url": "https://files.pythonhosted.org/packages/10/b2/c6afbbedec3e249142377f5fa4e223c9c8ca37c66f234089f8e84de57744/camoufox-0.4.9-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "84c0bdd615fa02cda723b67db930335f06996c0a14f0e020ef619329c7b07e5f",
"md5": "a3c6829d5735f24e4d89b29fb2e31863",
"sha256": "5a25df65b93b40b392c18ec627ef73a5cac568a82f7578a443e975c8456baf66"
},
"downloads": -1,
"filename": "camoufox-0.4.9.tar.gz",
"has_sig": false,
"md5_digest": "a3c6829d5735f24e4d89b29fb2e31863",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 65427,
"upload_time": "2024-12-13T07:01:40",
"upload_time_iso_8601": "2024-12-13T07:01:40.878297Z",
"url": "https://files.pythonhosted.org/packages/84/c0/bdd615fa02cda723b67db930335f06996c0a14f0e020ef619329c7b07e5f/camoufox-0.4.9.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-13 07:01:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "daijro",
"github_project": "camoufox",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "camoufox"
}