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
Get tickets
from lidlplus import LidlPlusApi
lidl = LidlPlusApi("DE", "de", refresh_token="XXXXXXXXXX")
for ticket in lidl.tickets():
print(lidl.ticket(ticket["id"]))
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
lidl-plus-0.1.6.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for lidl_plus-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0b1db6059725280aed193c946e92a7c7771dbfb74004ea28454abd7f5a113c7 |
|
MD5 | 5dd4c7010ebb351711b9858c8515e50c |
|
BLAKE2b-256 | 61ff03a5445fdb1fc7bae56dbf2d349d0622663bcdfe7008ec108d645e7bfaee |