Install
npm install -g news-grabber
Config
Create a file in current directory called news-grabberc.json
to contain the configurations, for example:
Usage
Plain:
news-grabber
Use pm2:
pm2 start `which news-grabber` --name 'news-grabber' --log-date-format 'DD-MM HH:mm:ss.SSS'
API
timing
: Cron syntax, see: https://github.com/kelektiv/node-crontimezone
: The timezone config for node-cronpages.title
: The title of your page, used by email titlepages.url
: The url of the webpage to be watchedselector
: The DOM selector conforming todocument.querySelectorAll()
mail.receivers
: The mail receivers to send mail to once update foundnodemailer
: The config for nodemailer