Skip to main content

Python interface for Intradel

Project description

pyIntradel

PyPI - License PyPI PyPI - Python Version

A python connector for waste collection for province of Liège. This connector is using screen scraping to collect following data (for the current year), in json:

  • "Green bin" (organic waste) and "black bin" residual waste
    • Total weight
    • Number of collections
    • details of all the collections
    • chip number
    • starting date (01/01 of the current year)
  • Recypark
    • details of all the visits
    • (01/01 of the current year)

Here is an example of json:

[
    {
        "name": "ORGANIQUE",
        "start_date": "01-01-2022",
        "id": "123456",
        "details":
        [
            {
                "date": "20-01-2022",
                "detail": "34.0"
            },
            {
                "date": "17-02-2022",
                "detail": "27.0"
            },
            {
                "date": "07-04-2022",
                "detail": "36.0"
            }
        ],
        "total": "97"
    },
    {
        "name": "RESIDUEL",
        "start_date": "01-01-2022",
        "id": "78810",
        "details":
        [
            {
                "date": "20-01-2022",
                "detail": "14.5"
            },
            {
                "date": "07-04-2022",
                "detail": "11.5"
            },
            {
                "date": "21-04-2022",
                "detail": "11.5"
            }
        ],
        "total": "37.5"
    },
    {
        "name": "RECYPARC",
        "start_date": "01-01-2022",
        "id": "RECYPARC",
        "details":
        [
            {
                "date": "14-04-2022",
                "detail": "Encombrants (0.35 m³), Petits Bruns (0.00 pièce)"
            }
        ],
        "total": "1"
    }
]

Usage

The town parameter is the name of the town, you can check it here: towns

Python module

import aiohttp
from pyintradel import api

async with aiohttp.ClientSession() as sess:
    await api.get_data(sess, login, password, town)

Command line

python3 -m pyintradel.main user passw town

Buy Me A Coffee

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

pyintradel-0.0.6.tar.gz (221.2 kB view details)

Uploaded Source

Built Distribution

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

pyintradel-0.0.6-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file pyintradel-0.0.6.tar.gz.

File metadata

  • Download URL: pyintradel-0.0.6.tar.gz
  • Upload date:
  • Size: 221.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pyintradel-0.0.6.tar.gz
Algorithm Hash digest
SHA256 c9432000b1b37f30de211815885944fc64b8400d00066046288aa44f621d9cf9
MD5 9fea0d421ef6294d70a2f52a184a1c05
BLAKE2b-256 467151173b98499aae35935c502865b5ce5d2ec1fe799337ed1b16b15af8b4a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyintradel-0.0.6.tar.gz:

Publisher: publish-pypi.yml on thomasgermain/pyintradel

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

File details

Details for the file pyintradel-0.0.6-py3-none-any.whl.

File metadata

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

File hashes

Hashes for pyintradel-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8a98baaf723aa13e8adf8839ce1873b052360d6a4d272cc110d3195f799f9a0d
MD5 6057f4aa891cc81947a2ac4e57b15415
BLAKE2b-256 82b60d225a143a54872c331e693c61815fd20833c7fbdce7feeee7e5c7d4d8b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyintradel-0.0.6-py3-none-any.whl:

Publisher: publish-pypi.yml on thomasgermain/pyintradel

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