Skip to main content

Implementation of the Lidl Plus mobile app api in Python.

Project description

lidlplus-api

The Lidl Plus API (in Python)

Fork of https://github.com/Andre0512/lidl-plus

Installing

Clone this repo git clone https://github.com/Zsobix/lidlplus-api

Install all requirements pip install -r requirements.txt

Run playwright install

Install all dependencies that playwright requires

Done!

Usage

  1. Install Python 3
  2. Import "api" in your project
  3. ???
  4. profit

Functions

lidl = api.LidlPlusApi(language="YOUR_LANGUAGE_CODE", country="YOUR_COUNTRY_CODE", (and optionally) refresh_token="YOUR_REFRESH_TOKEN")

Initialize the LidlPlusApi class


lidl.login(email="YOUR_EMAIL", password="YOUR_PASSWORD")

Login to your Lidl Plus account using playwright


lidl.receipts(only_favourite=False, pageNumber=1)

Get all receipts from your account in 25 receipt chunks


lidl.receipt(ticket_id)

Get the specific receipt with the ticket id (returned from lidl.receipts, id field)


lidl.coupons(store_id)

Get all coupons from account with the specified store id (returned from lidl.get_stores)


lidl.activate_coupon(coupon_id)

Activate the specified coupon using the coupon id (returned from lidl.coupons)


lidl.deactivate_coupon(coupon_id)

Deactivate the specified coupon using the coupon id (returned from lidl.coupons)


lidl.start_couponplus()

EXPERIMENTAL PROBABLY DOESN'T WORK!!! Starts the coupon plus program for your account


lidl.couponplus(store_id)

DOESN'T WORK!!! Gets the information for the current month's coupon plus program with the store id (returned from lidl.get_stores)


lidl.purchaseLottery_details(coupon_id)

Gets the information about the scratch card/fortune wheel promotion with the coupon id (returned from lidl.home(store_id)["purchaseLottery"][0]["id"])


lidl.redeem_purchaseLottery(coupon_id)

Redeems the specifed scratch card/fortune wheel promotion with the coupon id (returned from lidl.home(store_id)["purchaseLottery"][0]["id"])


lidl.purchaseLottery_status(coupon_id)

Gets the status (redeemed coupon id, or nothing if no prize) of the scratch card/fortune wheel promotions with the coupon id (returned from lidl.home(store_id)["purchaseLottery"][0]["id"])


lidl.loyalty_id

Gets the account's loyalty id


lidl.generate_loyalty_id()

Generates the qr code of the loyalty id


lidl.get_stores()

Gets all the stores in the your specified country


lidl.offers(store_id)

Gets all the offers with the store id (returned from lidl.get_stores())


lidl.brochures(store_id)

Gets all brochures with the store id (returned from lidl.get_stores())


lidl.translations()

Gets all translation keys and translations in your specified language


lidl.activecoupons_count(store_id)

Gets the number of active coupons with the store id (returned from lidl.get_stores())


lidl.home(store_id)

Gets all the home page data when the lidl plus app is loaded


lidl.store_schedule(store_id)

Gets today's store schedule with the store id (returned from lidl.get_stores())


lidl.store_details(store_id)

Gets the specified store details with the store id (returned from lidl.get_stores())

Tip

If you really want to, here's my ko-fi link: https://ko-fi.com/zsobix

You don't need to, but it's a huge motivation for me to keep developing this.

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

lidlplus_api-0.0.1.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

lidlplus_api-0.0.1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file lidlplus_api-0.0.1.tar.gz.

File metadata

  • Download URL: lidlplus_api-0.0.1.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

Hashes for lidlplus_api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 52adaeb18baa7daf99233281e9e87f901577571862a254ad8a543875b77d46a3
MD5 53006cbf628fdea334a64ec9ddd88a3c
BLAKE2b-256 a8ddfdedccfb418d9f8497c928ae165ecba54fe49f8a7174da49fa7cb3a41a5f

See more details on using hashes here.

Provenance

The following attestation bundles were made for lidlplus_api-0.0.1.tar.gz:

Publisher: publish.yml on zsobix/lidlplus-api

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

File details

Details for the file lidlplus_api-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: lidlplus_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lidlplus_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6ef12e803970f12367d1c6d38ea1a670e8c9a659f321ca7ec64178876682415b
MD5 5e80b71d467e648fe0b6de9abd0629b6
BLAKE2b-256 235084ed346d980ee43b2bc0aa162c98191e287012230581f8e528193cd731e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for lidlplus_api-0.0.1-py3-none-any.whl:

Publisher: publish.yml on zsobix/lidlplus-api

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