首先,安装 camoufox 包:
pip install -U camoufox[geoip]geoip 参数是可选的,但如果你使用代理,强烈建议启用。它会额外下载一个数据集,用于确定用户的经度、纬度、时区、国家与区域设置。
Windows
Section titled “Windows”camoufox fetchpython3 -m camoufox fetchpython -m camoufox fetch在全新安装的 Linux 上,你可能还需要下面这些 Firefox 依赖:
Debian 系发行版
Section titled “Debian 系发行版”sudo apt install -y libgtk-3-0 libx11-xcb1 libasound2Arch 系发行版
Section titled “Arch 系发行版”sudo pacman -S gtk3 libx11 libxcb cairo libasound alsa-lib卸载时,执行 camoufox remove。
Camoufox CLI
Section titled “Camoufox CLI”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