How pokurilahari/intelligent-website-change-detection works
WatchDog is a local website-monitoring app: users manage monitored URLs through a dashboard, checks retrieve and compare site content, and meaningful changes can trigger email alerts. The Flask app contains its own checking and persistence logic, while the separate CLI monitor uses the fetcher and differ modules. The README documents scheduling, classifications, history, and alerts; some app internals are omitted from the excerpts, so only directly evidenced module relationships are shown.
Main entry points: app.py App check workflow · alerts.py Email alerts · monitor.py CLI monitor · index.html Dashboard
Components 13
Web dashboard
- Dashboard
templates/index.html - Flask app and API
app.py
Monitoring and alerts
- App check workflow
app.py - CLI monitor
monitor.py - Content fetcher
fetcher.py - Change detection
differ.py - Email alerts
alerts.py
Local state
- Site settings
data/sites.json - Change history
data/history.json - Snapshots
snapshots
Other components
- User
- Monitored website
- SMTP service
Connections 14
- User → Dashboard: uses
README.md - Dashboard → Flask app and API: requests pages
app.py - User → Flask app and API: manages sites
README.md - Flask app and API → App check workflow: runs checks
app.py - App check workflow → Monitored website: fetches content
- App check workflow → Site settings: reads and updates
app.py - App check workflow → Change history: records changes
app.py - App check workflow → Snapshots: reads and saves
app.py - App check workflow → Email alerts: sends alerts
app.py - CLI monitor → Content fetcher: fetches and saves
monitor.py - CLI monitor → Change detection: computes changes
monitor.py - CLI monitor → Email alerts: sends alerts
monitor.py - Email alerts → Change detection: formats preview
alerts.py - Email alerts → SMTP service: sends email
alerts.py