- Create a virtual environment for the dependencies
- Run
requirements.txt
inside your env - Download browser driver
- Setup environment variables
I suppose you have already installed python on your system, this code works on both Windows and Linux/Mac
On your preference terminal
- Install package
pip install virtualenv
- Create the virtual environment
virtualenv venv
- Activate the virtual environment
Windows:
venv\Scripts\activate
Linux:source venv/bin/activate
Inside your environment
- Install all dependencies listed on requirements file
pip install requirements.txt
This is will handle the browser for us
-
Search on Google the webdriver compatible with you personal browser, then download then
On my case chromedriver 89, https://chromedriver.chromium.org/downloads
Drivers available: ChromeDriver, GeckoDriver, MS Edge WebDriver. -
Put the file into this folder
Windows:
venv\Scripts\
Linux:venv/bin/
- Setup
List of variables:
USR: "user@gmail.com"
PWD: "yourPassword"