cd scraping
python3 -m venv .
source bin/activate
pip3 install -r req.txt
python3 main.py
sudo docker network create rpi-scrape-network
sudo docker build -t rpidatabase database/
sudo docker run -d --name rpi-scrape --network rpi-scrape-network -p 3306:3306 rpidatabase
Once this is done use the docker inspect command to get the ip address on the network and update the DatabaseLogic.py script
sudo docker build -t rpiscrape scraping/
sudo docker run --name python-scraper --network rpi-scrape-network rpiscrape