How pranav-kuppachi/automated-price-tracking-alert-system works
Web-Watcher is a single-file Flask price-monitoring application. A user submits product details through its web interface; the application stores a watchlist entry, while a background watcher periodically fetches prices, compares them with targets, and sends alerts when conditions are met. The README documents this workflow and the MySQL, scraping, scheduling, and notification capabilities. Source excerpts show database operations, price-fetching code, and watcher startup; omitted portions limit certainty about some handler and comparison details.
Main entry points: main.py Background watcher
Components 13
Web interface
- Watchlist form
main.py - Flask application
main.py - Add product
main.py
Price monitoring
- Background watcher
main.py - Price fetcher
main.py - Store price parsing
main.py - Target comparison
main.py
Data storage
- MySQL connection
main.py - Watchlist records
main.py - Price history
main.py
External services
- ScraperAPI
- SendGrid email
Other components
- Product watcher
Connections 15
- Product watcher → Watchlist form: submits details
README.md - Watchlist form → Flask application: posts product
main.py - Flask application → Add product: handles request
README.md - Add product → MySQL connection: opens connection
main.py - MySQL connection → Watchlist records: writes entry
main.py - Background watcher → MySQL connection: opens connection
main.py - MySQL connection → Watchlist records: reads entries
main.py - Background watcher → Price fetcher: fetches price
main.py - Price fetcher → ScraperAPI: requests page
main.py - Price fetcher → Store price parsing: parses response
main.py - Background watcher → Target comparison: checks target
README.md - Background watcher → SendGrid email: sends alert
main.py - Background watcher → MySQL connection: logs price
main.py - MySQL connection → Price history: stores price
main.py - Flask application → Background watcher: starts thread
main.py