Implementation of the Lidl Plus mobile app api in Python.
Project description
lidlplus-api
A Python wrapper for the Lidl Plus app API.
This project is a fork of: https://github.com/Andre0512/lidl-plus
Requirements
- Python 3.12+
- Playwright (plus its required system dependencies)
Installation
-
Install the package:
pip install lidlplus-api
-
Install Playwright browsers:
playwright install -
Install system dependencies required by Playwright (varies by OS).
Quick start
from lidlplus_api import api
lidl = api.LidlPlusApi(
language="YOUR_LANGUAGE_CODE",
country="YOUR_COUNTRY_CODE",
# optional:
refresh_token="YOUR_REFRESH_TOKEN",
)
lidl.login(email="YOUR_EMAIL", password="YOUR_PASSWORD")
Usage
- Import
lidlplus_apiin your project - Use the
LidlPlusApimethods below
API reference
Create client
-
Constructor
lidl = api.LidlPlusApi( language="YOUR_LANGUAGE_CODE", country="YOUR_COUNTRY_CODE", refresh_token="YOUR_REFRESH_TOKEN", # optional )
Initializes the
LidlPlusApiclient.
Authentication
-
Login (Playwright)
lidl.login(email="YOUR_EMAIL", password="YOUR_PASSWORD")
Logs in to your Lidl Plus account using Playwright.
Receipts
-
List receipts (paged, 25 per page)
lidl.receipts(only_favourite=False, pageNumber=1)
-
Get a specific receipt
lidl.receipt(ticket_id)
ticket_idcomes fromlidl.receipts()(idfield).
Coupons
-
List coupons for a store
lidl.coupons(store_id)
store_idcomes fromlidl.get_stores(). -
Activate a coupon
lidl.activate_coupon(coupon_id)
-
Deactivate a coupon
lidl.deactivate_coupon(coupon_id)
coupon_idcomes fromlidl.coupons().
Coupon Plus (experimental)
-
Start Coupon Plus
lidl.start_couponplus()
EXPERIMENTAL — probably doesn’t work.
-
Coupon Plus status/info
lidl.couponplus(store_id)
DOESN’T WORK — fetches info for the current month’s Coupon Plus (store from
lidl.get_stores()).
Scratch card / Fortune wheel (purchaseLottery)
-
Promotion details
lidl.purchaseLottery_details(coupon_id)
-
Redeem promotion
lidl.redeem_purchaseLottery(coupon_id)
-
Promotion status
lidl.purchaseLottery_status(coupon_id)
coupon_idcomes from:lidl.home(store_id)["purchaseLottery"][0]["id"]
Loyalty
-
Get loyalty id
lidl.loyalty_id
-
Generate loyalty QR code
lidl.generate_loyalty_id()
Stores / Offers / Brochures
-
List stores
lidl.get_stores()
-
Offers for a store
lidl.offers(store_id)
-
Brochures for a store
lidl.brochures(store_id)
Translations
-
Get translation keys
lidl.translations()
Misc
-
Active coupons count
lidl.activecoupons_count(store_id)
-
Home page data
lidl.home(store_id)
-
Today’s store schedule
lidl.store_schedule(store_id)
-
Store details
lidl.store_details(store_id)
Legal Notice
This application is an open source project written in Python, which uses the API of the Lidl Plus application, owned by Lidl Stiftung & Co. KG. The application was created solely for educational purposes and is not affiliated with Lidl Stiftung & Co. KG. The creator of the application is not affiliated with Lidl Stiftung & Co. KG. in any way and does not derive any financial benefits from this project. All trademarks, trade names, and logos are the property of their respective owners. Users use the application at their own risk.
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
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 lidlplus_api-0.0.2.tar.gz.
File metadata
- Download URL: lidlplus_api-0.0.2.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adef8a0f430ad7077d586cabf0f83d188fa39a8bceb46b65d356c57519ca667a
|
|
| MD5 |
3df5252c3417b5ce1bd7c5d687773b9d
|
|
| BLAKE2b-256 |
ea5e26e55d31f2db2577f538789a6c36422e445ad22ba54c215ecb927c47c9d5
|
Provenance
The following attestation bundles were made for lidlplus_api-0.0.2.tar.gz:
Publisher:
publish.yml on zsobix/lidlplus-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lidlplus_api-0.0.2.tar.gz -
Subject digest:
adef8a0f430ad7077d586cabf0f83d188fa39a8bceb46b65d356c57519ca667a - Sigstore transparency entry: 1280666976
- Sigstore integration time:
-
Permalink:
zsobix/lidlplus-api@a5c1666c27eac5e80b9d3b6c1e786037ab872efd -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/zsobix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a5c1666c27eac5e80b9d3b6c1e786037ab872efd -
Trigger Event:
release
-
Statement type:
File details
Details for the file lidlplus_api-0.0.2-py3-none-any.whl.
File metadata
- Download URL: lidlplus_api-0.0.2-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
287c80bbcfbbe7ed74c4e5c579d16f11693faa0068b2a857db0fe52412d67593
|
|
| MD5 |
33184b308e6bd0435cf1e747f05fae4a
|
|
| BLAKE2b-256 |
0e66de661bf92491eea1b449991d3c2a33b315c4bab76568d167fd28367854c9
|
Provenance
The following attestation bundles were made for lidlplus_api-0.0.2-py3-none-any.whl:
Publisher:
publish.yml on zsobix/lidlplus-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lidlplus_api-0.0.2-py3-none-any.whl -
Subject digest:
287c80bbcfbbe7ed74c4e5c579d16f11693faa0068b2a857db0fe52412d67593 - Sigstore transparency entry: 1280666980
- Sigstore integration time:
-
Permalink:
zsobix/lidlplus-api@a5c1666c27eac5e80b9d3b6c1e786037ab872efd -
Branch / Tag:
refs/tags/0.0.2 - Owner: https://github.com/zsobix
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a5c1666c27eac5e80b9d3b6c1e786037ab872efd -
Trigger Event:
release
-
Statement type: