How suryavamshikusam/warwatch works
WarWatch is a conflict-news monitoring dashboard with a parallel commodity and Indian-market tracker. The main workflow is the bot fetching and deduplicating RSS articles, then rebuilding dashboard data; a separate price fetch produces market data for the site. The dashboard also presents report-derived alerts, analysis, history, and India impacts. Source excerpts establish the bot’s calls and the data-generation steps, but do not show browser-side wiring for most pages. Email delivery is implemented separately; no caller was shown.
Main entry points: live_data.js Live dashboard data · bot.py Monitor bot · prices_fetcher.py Price fetcher · dashboard.py Dashboard builder
Components 21
News collection
- Monitor bot
bot.py - RSS scraper
scraper.py - Seen URLs
seen_urls.json
Dashboard data
- Dashboard builder
dashboard.py - Report history
reports - Live dashboard data
live_data.js - Report emailer
emailer.py
Market tracking
- Price fetcher
prices_fetcher.py - Price history
prices_history.json - Market data feed
prices_data.js
Web experience
- Main dashboard
index.html - WarWatch view
warwatch.html - India view
india.html - Economy view
economy.html - History view
history.html - Records view
records.html - Reports view
dashboard.html
Other components
- Operator
- RSS feeds
- Gmail SMTP
- Yahoo market data
Connections 19
- Operator → Monitor bot: runs
bot.py - Monitor bot → RSS scraper: fetches articles
bot.py - RSS scraper → RSS feeds: fetches feeds
scraper.py - Monitor bot → Seen URLs: reads and writes
bot.py - Monitor bot → Dashboard builder: invokes build
bot.py - Dashboard builder → Report history: reads reports
dashboard.py - Dashboard builder → Live dashboard data: writes data
dashboard.py - Monitor bot → Price fetcher: invokes build
bot.py - Price fetcher → Yahoo market data: downloads prices
prices_fetcher.py - Price fetcher → Price history: updates history
prices_fetcher.py - Price fetcher → Market data feed: writes feed
prices_fetcher.py - Report emailer → Gmail SMTP: sends email
emailer.py - Main dashboard → Live dashboard data: consumes data
- WarWatch view → Live dashboard data: consumes data
- India view → Live dashboard data: consumes data
- Economy view → Market data feed: consumes feed
- History view → Live dashboard data: consumes data
- Records view → Live dashboard data: consumes data
- Reports view → Live dashboard data: consumes data