Skip to main content

Scraper for Domino's Pizza Poland promotions

Project description

dominospl_promo — skaner promocji Domino's Pizza

Biblioteka Pythona i narzędzie CLI do pobierania aktualnych promocji pizzowych z dominospizza.pl.

🇬🇧 English version (README-EN.md)

Wymagania

pip install playwright pyyaml beautifulsoup4
playwright install chromium

Użycie jako biblioteka

from dominospl_promo import get_promotions

promos = get_promotions()

for promo in promos:
    print(promo["description"])
    print(promo["price"], "zł /", promo["pizzas"], "szt. →", promo["price_per_pizza"], "zł/pizza")

Struktura zwracanego słownika

Klucz Typ Opis
description str Tekst promocji (maks. 300 znaków)
price float Łączna cena w PLN
pizzas int Liczba pizz w ofercie
price_per_pizza float Cena za jedną pizzę

Wyniki posortowane rosnąco po price_per_pizza.

Użycie jako CLI

Opcje (config.yaml)

Pole Opis
language Język komunikatów: pl lub en
debug Tryb debugowania parsera: true / false

Struktura projektu

dominospl_promo/
    __init__.py     # Publiczne API: get_promotions()
    scraper.py      # Pobieranie strony (Playwright)
    parser.py       # Parsowanie HTML
cli.py              # Interfejs wiersza poleceń
i18n.py             # Tłumaczenia (tylko CLI)
config.py           # Ładowanie konfiguracji (tylko CLI)
config.yaml

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

dominospl_promo-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

dominospl_promo-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dominospl_promo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2746daa69a6e9fff81c6440bdb1352e986d1c7a03c2a6d6d79f75eff6eb17b59
MD5 ffa7b35cbe5431fae971d360fda21ae7
BLAKE2b-256 bfc4ddbdbe757c5907a989523ec9842bedbffe89243408ec6b5b8f0aafb87b90

See more details on using hashes here.

Provenance

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

Publisher: publish.yaml on philornot/dominospl-promocje

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

File details

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

File metadata

File hashes

Hashes for dominospl_promo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70baed8cb6994eb0df81538b1b217a6d6bf64a766b364763053b2a344b9fc90d
MD5 d961800e7550d44395a7eead38fe9d46
BLAKE2b-256 6b3de8f63a6349e84e5be9d254e0548edcd4dfabe75d3005f490334b05dbfdbe

See more details on using hashes here.

Provenance

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

Publisher: publish.yaml on philornot/dominospl-promocje

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