Are you waiting for a URL to come online? Or waiting for a website to update its information? Well, instead of just refereshing forever, this script can be installed in cron
to text you when the URL changes with a copy of the old and new website!
- AWS IAM account with SNS write policy
- Pastebin account (for sending the website data)
node
(tested on > v8) andnpm
cron
for scheduling the script run
npm install
to get necessary packages- Create
env.js
file with all the necessary data (based onenv.sample.js
file) - Install the script into crontab with a line like this (checks every 5 minutes):
*/5 * * * * /absolute/path/to/node /absolute/path/to/detect.js 2>&1 | tee -a /tmp/changedetector.log