Improve passing env variables

This commit is contained in:
2024-02-01 11:11:50 +01:00
parent 8810851284
commit 8f0af8607b
3 changed files with 14 additions and 1 deletions

View File

@@ -10,11 +10,19 @@ SCRAPER_SMTP_PASSWORD
SCRAPER_TO_MAIL
```
You can define them in shell or make use of .env.example file and copy it to `.env` (the docker example uses that approach)
It uses Google SMTP server (you have to provide google app credentials).
Run with:
```
python main.py
```
or build docker image and run it using the docker:
```
docker build -t lidl-price-scraper .
docker run -it --rm --env-file ./.env lidl-price-scraper
```