Product price poller, email notifications when price is lower than latest value.
Currently supports Finland's Verkkokauppa.com
electronics and Sissos
gun online store and any product from these websites.
You only need product code inserted in database product_code field. You can track as many as you want.
Product code's can be found from Verkkokauppa link and description, example: 63109
If you need support for more online stores, you are free to contribute on this repo. I review and merge pull requests coming from new branches.
This readme includes todo list for future plans.
Steps to get development environment running
- Choose your database platform. I use postgresql. See Sequelize dialects for support.
- Run
npm install
- Configure
.env
via renaming from template.env_tpl
- Run
sudo node poller.js
once so that database and table is created. - Insert your
product_code
(one or more) to products table. - Run using PM2 process manager or any other
pm2 start poller.js
- Done!
New product as first run time, app will fill base price, product name etc automatically.
Example product codes: 36712 and 63109
DB_DIALECT
choose your database. Examples in template. Fill rest of the db details.STORE_URL
url to web store, url: https://www.verkkokauppa.com/fi/product/ (parse html)STORE_URL_2
url to web store api, url: https://www.sissos.fi/backend/api/v1/products/ (json api)EMAIL_HOST
smtp mail host server.EMAIL_USER
origin from where email is sent from.EMAIL_TO_ADDRESS
destination where email is going to.
- implement usable base structure;
- simple back end api for front end ui;
- simple front end user interface for managing data;
No versioning implemented yet.
- Norkator - Initial work, code owner - norkator
See LICENSE file.