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 main.py 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.4.tar.gz (5.7 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.4-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyintradel-0.0.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.22

File hashes

Hashes for pyintradel-0.0.4.tar.gz
Algorithm Hash digest
SHA256 715324ea32b796d5dca1dc29eb8b20f5fd61fe479c7faf9181f03334cf5c7096
MD5 0a83cd62fd588c52487d51da3efe0f3c
BLAKE2b-256 9af90ff72c26bf38c292530c69eeb296bb7f43e18f21f0d4f00cadb9c8f016dc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyintradel-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 44644adf23d147a631987067ad8137bca54f277c45be5be8fa76784019d4700d
MD5 24f1dd43aeba6f637d75712ef534eaa9
BLAKE2b-256 7e45c2733270f4a252ba4ee3f844626f22772a2aedfae421cd22488695cbb5b1

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