- (Optional) Add credentials for a gmail account in
kbhff/api/mail_credentials.py
as described below - Change to this directory and install this package (
kbhff
) viapip install .
- Install the remaining requirements via
pip install -r requirements.txt
- Make sure you have installed
geckodriver
andchromedriver
to user Firefox and Chrome with selenium- Download
geckodriver
(e.g. version 0.24.0) andchromedriver
(e.g. version 73.0)wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
wget https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip
- Unpack these into e.g. subdirectories named
geckodriver
andchromedriver
- Add these subdirectories to your python path
export PATH=$PATH:$PWD/geckodriver
export PATH=$PATH:$PWD/chromedriver
- Download
There are two ways to use this package with a gmail account.
- Define two environment variables
MAIL_CREDENTIALS_EMAIL
containing your gmail address as string andMAIL_CREDENTIALS_PASSWORD
containing the password to your account as string - Add a
mail_credentials.py
file tokbhff/api/
as in the first installation step above. This file should define adict
calledmail_credentials
with keys"login"
and"password"
mapping your gmail address and its password as strings. Make sure to (re)install after adding this file.