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!

Lidl-Plus

Python API for Lidl Plus

Installation

pip install lidl-plus

Usage

You need Google Chrome to run this tool.
Alternatively, you can use the commandline tool lidl-plus to generate a Lidl Plus refresh token once on a device with Google Chrome.

Get tickets

from lidlplus import LidlPlusApi

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

Get token

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)

Generate refresh token

Prerequisites

You need to install Google Chrome and the additional packages selenium-wire and getuseragent

pip install lidl-plus selenium-wire getuseragent

Usage

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

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.4.tar.gz (4.4 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.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lidl-plus-0.1.4.tar.gz
  • Upload date:
  • Size: 4.4 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.4.tar.gz
Algorithm Hash digest
SHA256 a92fd5099b4c8797c7286f212fda1226ede1108348d2d854c19e5d9db1898a0a
MD5 cba2cef06421c1ba775670b4d53403d2
BLAKE2b-256 2ec152385ea8274af370eceb7bc32948e7e4bd950ad632827b80bd33c2763be0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lidl_plus-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7f9e2c6a7086b6001a58ffda83ab488835cd3bebaec753134e8c90ef85bb5d58
MD5 3584b93f930ad541378250653e95840e
BLAKE2b-256 cf3b4ec3b61db83d1d34358cc5a06a54f29d9a73fbd0f7cfb66bf7660874e058

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