1
0
Fork
You've already forked bbox3
0
An unofficial API to interact with your local Proximus B-Box3 web interface.
  • Python 100%
Find a file
2020年12月27日 22:26:11 +01:00
build/lib/proximus Packaging... 2020年12月27日 22:22:25 +01:00
dist Packaging... 2020年12月27日 22:22:25 +01:00
proximus Packaging... 2020年12月27日 22:22:25 +01:00
proximus.egg-info Packaging... 2020年12月27日 22:22:25 +01:00
.gitignore Adding basic files 2020年12月27日 14:49:08 +01:00
LICENSE Packaging... 2020年12月27日 22:22:25 +01:00
README.md Adding pip installation 2020年12月27日 22:26:11 +01:00
setup.py Packaging... 2020年12月27日 22:22:25 +01:00

BBOX3 API

This API have been written in Python using Selenium, Firefox and Geckodriver. It can works on a server (headless)

Setting up

  1. 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
  1. 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
  1. 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
  1. Install Selenium
pip3 install selenium
  1. Install this API
pip3 install proximus

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)