A web automation of Bbox3 web interface.
Project description
BBOX3 API
This API have been written in Python using Selenium, Firefox and Geckodriver. It can works on a server (headless)
Setting up
- Install Firefox
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A6DCF7707EBC211F
sudo apt-add-repository "deb http://ppa.launchpad.net/ubuntu-mozilla-security/ppa/ubuntu bionic main"
sudo apt-get update
sudo apt-get install firefox
- Install Geckodriver
wget https://github.com/mozilla/geckodriver/releases/download/v0.28.0/geckodriver-v0.28.0-linux64.tar.gz
tar xfvz geckodriver*.tar.gz
sudo mv geckodriver /usr/bin/geckodriver
- Install Python3 and Pip3
sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install python3 python3-pip
- Install Selenium
pip3 install selenium
Quickstart
# Load the module, open the browser and login (mandatory at the start)
from proximus import *
b = newInstance(headless=True)
login(b, "yourpassword")
# What you want to execute (you can find all the functions below)
toggleHotspot(b)
# Close the browser (mandatory at the end)
b.close()
Documentation
To get the documentation, simply run:
import proximus
help(proximus)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proximus-0.0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
proximus-0.0.1-py3-none-any.whl
(15.3 kB
view hashes)