Skip to main content

Lidl Plus api

Project description

This python package is unofficial and is not related in any way to Lidl. It was developed by reversed engineered requests and can stop working at anytime!

Python Lidl Plus API

Installation

pip install lidl-plus

Generate refresh token

Prerequisites

You need to install Google Chrome and some additional python packages to generate.

pip install "lidl-plus[auth]"

Commandline-Tool

You can use the commandline tool lidl-plus to generate a Lidl Plus refresh token once on a device with Google Chrome.

$ lidl-plus auth
Enter your lidl plus username (phone number): +4915784632296
Enter your lidl plus password: 
Enter your language (DE, EN, ...): DE
Enter your country (de, at, ...): de
Enter your verify code: 590287
------------------------- refresh token ------------------------
2D4FC2A699AC703CAB8D017012658234917651203746021A4AA3F735C8A53B7F
----------------------------------------------------------------

Python

from lidlplus import LidlPlusApi

lidl = LidlPlusApi(language="DE", country="de")
lidl.login(phone="+4915784632296", password="password", verify_token_func=lambda: input("Insert code: "))
print(lidl.refresh_token)

Usage

Currently, the only feature is fetching receipts

Receipts

Commandline

$ lidl-plus --country=de --language=DE --refresh-token=XXXXX receipt --all > data.json

Python

from lidlplus import LidlPlusApi

lidl = LidlPlusApi("DE", "de", refresh_token="XXXXXXXXXX")
for receipt in lidl.tickets():
    pprint(lidl.ticket(receipt["id"]))

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

lidl-plus-0.1.8.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

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

lidl_plus-0.1.8-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file lidl-plus-0.1.8.tar.gz.

File metadata

  • Download URL: lidl-plus-0.1.8.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for lidl-plus-0.1.8.tar.gz
Algorithm Hash digest
SHA256 71afea2312d1be8d0824faa36395b0ff1ac88aff236abe532f989311ae0c29ee
MD5 3bd4e329e072e74d03dbf5741d336736
BLAKE2b-256 fa1598fff00343bb0ff9c7a188eaec608e44c3f728cf0d019160eec5591eecee

See more details on using hashes here.

File details

Details for the file lidl_plus-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: lidl_plus-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for lidl_plus-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 a73ceb495e84919e4bc6796987fda141592c66aee6e87e435735392fdb31a813
MD5 5719e7ddd7be5451c30d69d9f45d47b1
BLAKE2b-256 d7e2323397cee92c3259f0c8f57cbc0b63ef1d737d2f1a71572c3aa413024336

See more details on using hashes here.

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