Update readme
This commit is contained in:
@@ -2,7 +2,10 @@
|
|||||||
|
|
||||||
Simple app which checks a price of selected items and prints their current price and discount.
|
Simple app which checks a price of selected items and prints their current price and discount.
|
||||||
|
|
||||||
It also sends a notification of items via email any items is on sale and following env variables are defined:
|
## How to build and run
|
||||||
|
|
||||||
|
1. create file with urls to be watched `cp urls.txt.example urls.txt`
|
||||||
|
2. Configure SMTP and mail destination (for mail notification)
|
||||||
|
|
||||||
```
|
```
|
||||||
SCRAPER_SMTP_USER
|
SCRAPER_SMTP_USER
|
||||||
@@ -24,5 +27,5 @@ or build docker image and run it using the docker:
|
|||||||
|
|
||||||
```
|
```
|
||||||
docker build -t lidl-price-scraper .
|
docker build -t lidl-price-scraper .
|
||||||
docker run -it --rm --env-file ./.env lidl-price-scraper
|
docker run -it --rm -f $(pwd)/urls.txt:/app/urls.txt --env-file ./.env lidl-price-scraper
|
||||||
```
|
```
|
||||||
3
urls.txt.example
Normal file
3
urls.txt.example
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
https://www.lidl.cz/p/p100370600
|
||||||
|
https://www.lidl.cz/p/p100358513
|
||||||
|
https://www.lidl.cz/p/p100336045
|
||||||
Reference in New Issue
Block a user