For the code to work, you will need:
-
python3 installed.
-
Create your python environment:
python3 -m venv dealutltimeenv
-
Activate the virtual environment source
dealutltimeenv/bin/activate
(If you want to deactivate your environment, just typedeactivate
in the terminal.)
- Chrome installed, try to have the latest version
- and the driver for Chrome
Make sure to match the browser and driver versions, Chrome 96, as of this writing.
Credits: I used this article to help me get started.
- Make sure that our virtual env is active:
source dealutltimeenv/bin/activate
- Export our app.py file to tell the flask server where to look for the file:
export FLASK_APP=app.py
- Run flask in the terminal:
flask run
- Open
http://localhost:5000/
in your navigator.