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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2746daa69a6e9fff81c6440bdb1352e986d1c7a03c2a6d6d79f75eff6eb17b59
|
|
| MD5 |
ffa7b35cbe5431fae971d360fda21ae7
|
|
| BLAKE2b-256 |
bfc4ddbdbe757c5907a989523ec9842bedbffe89243408ec6b5b8f0aafb87b90
|
Provenance
The following attestation bundles were made for dominospl_promo-0.1.0.tar.gz:
Publisher:
publish.yaml on philornot/dominospl-promocje
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dominospl_promo-0.1.0.tar.gz -
Subject digest:
2746daa69a6e9fff81c6440bdb1352e986d1c7a03c2a6d6d79f75eff6eb17b59 - Sigstore transparency entry: 953281669
- Sigstore integration time:
-
Permalink:
philornot/dominospl-promocje@96b85b2e50a293f99e83449d648a3d4eb9f2592d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/philornot
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@96b85b2e50a293f99e83449d648a3d4eb9f2592d -
Trigger Event:
release
-
Statement type:
File details
Details for the file dominospl_promo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dominospl_promo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70baed8cb6994eb0df81538b1b217a6d6bf64a766b364763053b2a344b9fc90d
|
|
| MD5 |
d961800e7550d44395a7eead38fe9d46
|
|
| BLAKE2b-256 |
6b3de8f63a6349e84e5be9d254e0548edcd4dfabe75d3005f490334b05dbfdbe
|
Provenance
The following attestation bundles were made for dominospl_promo-0.1.0-py3-none-any.whl:
Publisher:
publish.yaml on philornot/dominospl-promocje
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dominospl_promo-0.1.0-py3-none-any.whl -
Subject digest:
70baed8cb6994eb0df81538b1b217a6d6bf64a766b364763053b2a344b9fc90d - Sigstore transparency entry: 953281671
- Sigstore integration time:
-
Permalink:
philornot/dominospl-promocje@96b85b2e50a293f99e83449d648a3d4eb9f2592d -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/philornot
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@96b85b2e50a293f99e83449d648a3d4eb9f2592d -
Trigger Event:
release
-
Statement type: