From d4302240e78ddb05176f5711dd1ea923cfff5401 Mon Sep 17 00:00:00 2001 From: Jakub Knetl Date: Fri, 2 Feb 2024 20:50:18 +0100 Subject: [PATCH] Update readme --- README.md | 7 +++++-- urls.txt.example | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 urls.txt.example diff --git a/README.md b/README.md index 79f47a7..7431fb5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,10 @@ 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 @@ -24,5 +27,5 @@ 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 +docker run -it --rm -f $(pwd)/urls.txt:/app/urls.txt --env-file ./.env lidl-price-scraper ``` \ No newline at end of file diff --git a/urls.txt.example b/urls.txt.example new file mode 100644 index 0000000..8b2be0a --- /dev/null +++ b/urls.txt.example @@ -0,0 +1,3 @@ +https://www.lidl.cz/p/p100370600 +https://www.lidl.cz/p/p100358513 +https://www.lidl.cz/p/p100336045 \ No newline at end of file