Skip to main content

CLI for browsing Allegro offers, managing cart, and tracking packages — human-readable and LLM-agent friendly

Project description

allegro-cli

CI

CLI for browsing Allegro offers, managing your cart, and tracking packages. Designed to be both human-readable and LLM-agent friendly.

All output is available as aligned text tables, JSON, or TSV — pick what suits your workflow or pipe it into other tools.

Install

From GitHub Releases (recommended):

pip install https://github.com/pkonowrocki/allegro-cli/releases/latest/download/allegro_cli-0.1.0-py3-none-any.whl

From source (latest):

pip install git+https://github.com/pkonowrocki/allegro-cli.git

For development:

git clone https://github.com/pkonowrocki/allegro-cli.git
cd allegro-cli
pip install -e ".[dev]"

Setup

Import cookies from your browser:

allegro login

Paste cookies from Chrome DevTools (Application > Cookies > allegro.pl). Both the DevTools table format and raw cookie header strings are accepted.

Alternatively, set cookies directly:

allegro config set --cookies 'cookie1=value1; cookie2=value2'

Usage

Search

allegro search "laptop"
allegro search "laptop" --category 491
allegro search "laptop" --category laptopy-491 --sort pd --price-min 2000 --price-max 5000
allegro search "laptop" --columns "id,name,sellingMode.price.amount,parameters"
Flag Description
--category Category ID or slug (e.g. 491, laptopy-491)
--sort Sort order: p (price asc), pd (price desc), m (relevance), n (newest)
--price-min Minimum price in PLN
--price-max Maximum price in PLN
--page Page number (default: 1)
--columns Comma-separated columns to display

Offer details

allegro offer 12345678
allegro offer 12345678 --columns "name,sellingMode.price.amount,parameters"

Offer pages include a parameters field with product specifications (e.g. processor, RAM, screen size) extracted automatically from the listing.

Cart

allegro cart list
allegro cart add OFFER_ID SELLER_ID --quantity 2
allegro cart remove OFFER_ID SELLER_ID

Packages

allegro packages

Configuration

allegro config show
allegro config set --output-format json
allegro config set --flaresolverr-url http://localhost:8191/v1

Output formats

All commands support --format text (default), --format json, and --format tsv.

allegro search "laptop" --format json     # full JSON array
allegro search "laptop" --format tsv      # tab-separated, pipe-friendly
allegro search "laptop"                   # aligned text table (default)
allegro offer 12345678 --format json      # full offer with parameters

Use --columns to select specific fields (dot-notation supported):

allegro search "laptop" --columns "id,name,sellingMode.price.amount"
allegro offer 12345678 --columns "name,parameters"

Set a persistent default:

allegro config set --output-format json

Anti-bot handling

Allegro uses anti-bot protection (DataDome). The CLI first tries a direct request with your cookies via curl_cffi (Chrome TLS fingerprint). If that gets a 403, it falls back to FlareSolverr:

docker run -d --name flaresolverr -p 8191:8191 ghcr.io/flaresolverr/flaresolverr:latest

Development

pip install -e ".[dev]"
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

allegro_cli-0.1.0.tar.gz (24.5 kB view details)

Uploaded Source

Built Distribution

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

allegro_cli-0.1.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file allegro_cli-0.1.0.tar.gz.

File metadata

  • Download URL: allegro_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 24.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for allegro_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b3f4b67a66b15161aa78146a70527e3b311065d8b44321d50ffaa6f8423c576
MD5 3db39f6f3790b3cd572b66738cc88771
BLAKE2b-256 b19e740ad35755045d5f893767c7a63efd0c4260bf465f75371ec5dcb0979ca5

See more details on using hashes here.

Provenance

The following attestation bundles were made for allegro_cli-0.1.0.tar.gz:

Publisher: release.yml on pkonowrocki/allegro-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file allegro_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: allegro_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for allegro_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45f79d43a197c71de7851fee935c3f6ac75b1a17a40875d630d49be2c5fc741e
MD5 71a2697d18a63f8070acfc8cd01158ae
BLAKE2b-256 c032b59e92fa02923caf696099fa8047254a34c98a17a1f413743e19b099497d

See more details on using hashes here.

Provenance

The following attestation bundles were made for allegro_cli-0.1.0-py3-none-any.whl:

Publisher: release.yml on pkonowrocki/allegro-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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