camoufox


Namecamoufox JSON
Version 0.4.11 PyPI version JSON
download
home_pageNone
SummaryWrapper around Playwright to help launch Camoufox
upload_time2025-01-29 09:33:20
maintainerNone
docs_urlNone
authordaijro
requires_python<4.0,>=3.8
licenseMIT
keywords client fingerprint browser scraping injector firefox playwright
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <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": null,
    "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/d3/15/e0a1b586e354ea6b8d6612717bf4372aaaa6753444d5d006caf0bb116466/camoufox-0.4.11.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.11",
    "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": "c67ba2f099a5afb9660271b3f20f6056ba679e7ab4eba42682266a65d5730f7e",
                "md5": "98e6c36e36e963fcd8bc9763ecb59ce7",
                "sha256": "83864d434d159a7566990aa6524429a8d1a859cbf84d2f64ef4a9f29e7d2e5ff"
            },
            "downloads": -1,
            "filename": "camoufox-0.4.11-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "98e6c36e36e963fcd8bc9763ecb59ce7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 71628,
            "upload_time": "2025-01-29T09:33:18",
            "upload_time_iso_8601": "2025-01-29T09:33:18.558057Z",
            "url": "https://files.pythonhosted.org/packages/c6/7b/a2f099a5afb9660271b3f20f6056ba679e7ab4eba42682266a65d5730f7e/camoufox-0.4.11-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d315e0a1b586e354ea6b8d6612717bf4372aaaa6753444d5d006caf0bb116466",
                "md5": "0c49d135bcb76f854a6486413c8639bb",
                "sha256": "0a2c9d24ac5070c104e7c2b125c0a3937f70efa416084ef88afe94c32a72eebe"
            },
            "downloads": -1,
            "filename": "camoufox-0.4.11.tar.gz",
            "has_sig": false,
            "md5_digest": "0c49d135bcb76f854a6486413c8639bb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 64409,
            "upload_time": "2025-01-29T09:33:20",
            "upload_time_iso_8601": "2025-01-29T09:33:20.019726Z",
            "url": "https://files.pythonhosted.org/packages/d3/15/e0a1b586e354ea6b8d6612717bf4372aaaa6753444d5d006caf0bb116466/camoufox-0.4.11.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-29 09:33:20",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "daijro",
    "github_project": "camoufox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "camoufox"
}
        
Elapsed time: 1.12582s