Skip to main content

Extract and display cookies from macOS browsers (Chrome, Safari)

Project description

cookietuner

A command-line tool to extract and display cookies from macOS browsers.

Installation

The easiest way to run cookietuner is with uv:

uvx cookietuner

Or install it permanently:

uv tool install cookietuner

Usage

List cookies

# Chrome cookies (browser is required)
cookietuner cookies -b chrome

# Safari cookies
cookietuner cookies -b safari

# Filter by domain
cookietuner cookies -b chrome -d google.com

# Use a specific Chrome profile
cookietuner cookies -b chrome -p "Profile 1"

Output formats

# Full table with all details (default)
cookietuner cookies -b chrome -o table

# Short table with just domain, name, value
cookietuner cookies -b chrome -o short

# Space-separated line format (for scripting)
cookietuner cookies -b chrome -o line

# JSON output
cookietuner cookies -b chrome -o json

List browser profiles

# List all profiles
cookietuner profiles

# Filter by browser
cookietuner profiles -b chrome

Features

  • Chrome support: Decrypts cookies using macOS Keychain, supports Chrome 130+ format
  • Safari support: Parses the binary cookies format with SameSite detection
  • Multiple output formats: table, short, and JSON
  • Domain filtering: Filter cookies by partial domain match
  • Profile selection: Choose which browser profile to read from
  • Cookie metadata: Shows expiration, Secure, HttpOnly, and SameSite flags

Requirements

  • macOS (the tool only works on macOS)
  • Python 3.14+
  • Chrome and/or Safari browser

Development

# Clone the repository
git clone https://github.com/alltuner/cookietuner.git
cd cookietuner

# Install dependencies
uv sync

# Run tests
uv run pytest

# Run the CLI
uv run cookietuner

License

MIT

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

cookietuner-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cookietuner-0.1.1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file cookietuner-0.1.1.tar.gz.

File metadata

  • Download URL: cookietuner-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cookietuner-0.1.1.tar.gz
Algorithm Hash digest
SHA256 33e38d6a776ec892f8147e0bbe0f65a731bce92d0c439831e73841eaca826725
MD5 ab8c4459b412d219f1c3ca2f61096c6f
BLAKE2b-256 3e9534432447a20c608ac7a11bc70d0051fbe2eccfe0bf2c73f6111c1ab3756c

See more details on using hashes here.

File details

Details for the file cookietuner-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: cookietuner-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cookietuner-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b762c9e7add168d4ca6e362c945e1c469277364c9da51e2f209cdc55086b52fe
MD5 29c0a9a1670bd705e8e87eea61bb38ac
BLAKE2b-256 e8c93f6c2dcf01f80ee2368d7397355f65d76757486655d8759751d5aec28c61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page