/telemeter

Fetch Telenet Telemeter information

Primary LanguagePythonMIT LicenseMIT

Telenet Telemeter parser

About

This program queries the 'Mijn Telenet' site to retrieve data about a user's monthly Telenet internet usage (a.k.a. telemeter).

It uses Selenium to fetch the necessary cookies, please make sure you have Firefox and the Gecko driver installed. The cookies are cached so subsequent calls will be much faster.

UPDATE: Version 3.0 no longer uses Selenium.

Can be run as a standalone script or used as a module. As a standalone script it prints telemeter info to the console. Credentials can be provided via environment variables (TELENET_USERNAME, TELENET_PASSWORD), else the user will be prompted for credentials.

Installation

pip install telemeter

Usage

As module

import telemeter

telenet_session = telemeter.TelenetSession()
telenet_session.login("my_username", "my_password")

my_telemeter = telenet_session.telemeter()

As script

python3 telemeter/telemeter.py