This script aims to ask for lunch ticket into Etemptation interface.
It is made with Selenium and Python
You have to install the driver of the browser.
wget -O /tmp/geckodriver-v0.31.0-linux64.tar.gz https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz
tar -C /usr/local/bin/ -xvf /tmp/geckodriver-v0.31.0-linux64.tar.gz
sudo apt-get install chromium-chromedriver
{
"driver_path": "/usr/local/bin/geckodriver"
}
The driver may be installed in the local environment (.venv). This is done by the script.
You just have to define the browser in the configuration file settings.json
:
{
"browser": "chrome"
}
{
"browser": "firefox"
}
TODO
# Clone the repository
git clone
cd etemptation
# install needed libraries
virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
# configure the script with your own information
mv settings.json{.example,}
vim settings.json
# launch the script
python ./etemptation_lunch_ticket.py