/proximus_add_volumes

Proximus : Auto add extra data volume packs

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

proximus_add_volumes.py

The unlimited volume of Belgacom/Proximus is, in fact, limited. And when this limit is reached, your connection is nearly useless because the very low speed of it.

This script help to easily add extra volume packs, with a headless mode to use it in a monthly cron by example.

Parameters

usage: proximus_add_volumes.py [-h] [--repeat REPEAT] [--headless HEADLESS] login password

Add extra data volume pack to Proximus Internet
NB : 150GB is now the only available pack size for now

positional arguments:
  login                Proximus login email
  password             Proximus password

optional arguments:
  -h, --help           show this help message and exit
  --repeat REPEAT      Number of volume packs to add (1 pack by default)
  --headless HEADLESS  Headless mode (enabled by default ; using xvfb)

Requirements

This script is using the following Python 3 modules :

  • argparse sudo pip3 install argparse
  • selenium sudo pip3 install selenium
  • pyvirtualdisplay sudo pip3 install pyvirtualdisplay

And the following cmdline tool (headless mode) :

  • xvfb (Ubuntu and derivatives) sudo apt-get install xvfb

Examples of use

Add 1 pack

./proximus_add_volumes.py --product=PROXIMUS_SUBSCRIBTION_NUMBER LOGIN PASSWORD

Add 5 packs

./proximus_add_volumes.py --repeat 5 --product=PROXIMUS_SUBSCRIBTION_NUMBER LOGIN PASSWORD

Add 10 packs in headless mode disable (FireFox will be opened)

./proximus_add_volumes.py --repeat 5 --headless 0 --product=PROXIMUS_SUBSCRIBTION_NUMBER LOGIN PASSWORD

Credits

These scripts have been modified and improved by Francois B. (Makotosan / Shakasan) based on the initial script written by Tuxicoman (see Initial Credits And Licence below)

Initial Credits and Licence

Copyright (C) 2016 Tuxicoman

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later $ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more detail$ You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Link to the post on Tuxicoman website : https://tuxicoman.jesuislibre.net/2016/05/internet-vraiment-illimite-chez-belgacomproximus.html