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.5.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.5-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyintradel-0.0.5.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.5.tar.gz
Algorithm Hash digest
SHA256 cc666f1f9efd4049d50fdf647b58846c77a4b0a7cc79fcf2e54463cc34074c8f
MD5 179c9080e0659ae2609a72b96ec1e562
BLAKE2b-256 aa9fccac2e926c17bc17f7e8f1c6e0297552aa80398ce4f4a0fc12df674b24e1

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyintradel-0.0.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: pyintradel-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a84dd0cee85ae1ed6927f1770a2415506876ec5d14b6398a8b26932992c02fd0
MD5 6412b466e99dbf63f34c39a910a8d5af
BLAKE2b-256 e3af732ed8c0e09b1d6bc5b97a098b9e09b2fa7e94e6ffcb0add782eecb62e03

See more details on using hashes here.

Provenance

The following attestation bundles were made for pyintradel-0.0.5-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