- Smart web monitoring system on a budget
- It monitors web pages, notifying through emails any content change
Create an .env file with the following content:
LM_SMTP_HOST=smtp.gmail.com
LM_SMTP_PORT=587
LM_SMTP_EMAIL=you@gmail.com
LM_SMTP_PASSWORD=YOUR_APP_PASSWORD # e.g. App password key
LM_TO=you@gmail.com,other@domain.com
LM_REQUESTS_CA_BUNDLE=./certs/cacert.pem # you have to use the certificate provided by the page you monitor
LM_PROFILE=news # you can monitor different types of links: links_example.txt, links_news.txt- after this, create the link files inside
linksdirectory, following thelinks_example.txttuple structure, whereexamplewill be the profile you use for theLM_PROFILEproperty - run the
link_monitor.pyscript - More info inside:
/docs/application
- Fetch: Download the page content
- Compare: Verify the differences
- Notify: If there are differences, send and email with screenshots via Playwright (assuming it was installed)
- Cleanup: The cronjob Alpha stops the EC2 instance to save money and resources