Skip to main content

No project description provided

Project description

PyPI Python

Overview

Small toolkit for capturing and dumping browser cookies via an embedded browser and then being able to use them from cURL or any way you see fit.

This supports crawling or capturing authenticated web content.

Requirements

Python 3.10 or newer (requires-python in pyproject.toml, aligned with PySide6).

Install

From the repository root:

pip install .

Build

From the repository root, install the build tooling (for example the dev extra, which includes build and twine), then run the packaging script:

pip install -e '.[dev]'
./infrastructure/build.sh

That runs python -m build and writes the wheel and sdist under dist/.

To publish those artifacts to PyPI (after configuring twine credentials), use:

./infrastructure/upload.sh

Tools

  • ct_authenticate: Opens an embedded Chromium window to the given URL. The output should be redirected. Login as necessary and press the "Done" button.

  • ct_to_curl: Reads the JSON output from ct_authenticate and prints curl cookie arguments

Example

ct_authenticate https://example.com > session.json
curl -s $(ct_to_curl < session.json) 'https://example.com/'

Tests

pytest

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

cookietruck-0.1.3.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

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

cookietruck-0.1.3-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file cookietruck-0.1.3.tar.gz.

File metadata

  • Download URL: cookietruck-0.1.3.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for cookietruck-0.1.3.tar.gz
Algorithm Hash digest
SHA256 92bddda808b417e48720ba2a06c31a094d4b491ba22b0407385d9af84c8993db
MD5 4d7155806a5ab3441138ffb6b4693c4a
BLAKE2b-256 9f742b1544caace963447ae1bbc72a3741e77eb6a2bcbdef5481dcb46bfa777c

See more details on using hashes here.

File details

Details for the file cookietruck-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cookietruck-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for cookietruck-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d94f3493abc33d1795ae50bd79550eebc82ade97ea99e3ea2ba43d945c86f473
MD5 745f0c935592ab9da9c8e593f8bc9e84
BLAKE2b-256 b1ea23c80ca313d90402563d2f25b25dad85540b498c3a3bdb6413f1ae4ac6c5

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