- (Optional) Add credentials for a gmail account in
kbhff/api/mail_credentials.pyas 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
geckodriverandchromedriverto 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.gzwget https://chromedriver.storage.googleapis.com/73.0.3683.68/chromedriver_linux64.zip
- Unpack these into e.g. subdirectories named
geckodriverandchromedriver - Add these subdirectories to your python path
export PATH=$PATH:$PWD/geckodriverexport PATH=$PATH:$PWD/chromedriver
- Download
There are two ways to use this package with a gmail account.
- Define two environment variables
MAIL_CREDENTIALS_EMAILcontaining your gmail address as string andMAIL_CREDENTIALS_PASSWORDcontaining the password to your account as string - Add a
mail_credentials.pyfile tokbhff/api/as in the first installation step above. This file should define adictcalledmail_credentialswith keys"login"and"password"mapping your gmail address and its password as strings. Make sure to (re)install after adding this file.