How savageking001/geopolitical-signal-engine works
Geopolitical Signal Engine turns event keywords into filtered and tagged news, company-level directional signals, a gold verdict, and a psychology summary. Its Flask form delegates analysis to the main entry point; the terminal entry point runs the same analysis. The repository also includes a separate company-news/chatbot and watchlist capability. Edges reflect shown calls or README-described stages; the chatbot’s web wiring and the separate Vaibhav dashboard are not established by the excerpts.
Main entry points: main.py Analysis orchestrator · chatbot.py Company chatbot · reddit_scraper.py Reddit collection · fetcher.py News fetcher
Components 18
News analysis
- News fetcher
news_pipeline/fetcher.py - News filter
news_pipeline/verifier.py - Event tagger
news_pipeline/tagger.py
Exposure mapping
- Company mapper
company_database/sector_mapper.py - Company database
company_database/companies.json
Psychology signals
- Reddit collection
sentiment_layer/reddit_scraper.py - Psychology scoring
sentiment_layer/psychology_signals.py
Signal outputs
- Company signals
signal_engine/scorer.py - Gold signal
gold_module/gold_signal.py - Analysis orchestrator
main.py
User interfaces
- Flask dashboard
dashboard/app.py - Company chatbot
dashboard/chatbot.py - Watchlist file
dashboard/vaibhav_watchlist.json - Vaibhav dashboard
dashboard/vaibhav.py
Other components
- Researcher
- NewsAPI
- Google News
Connections 21
- Researcher → Flask dashboard: submits query
dashboard/app.py - Flask dashboard → Analysis orchestrator: requests analysis
dashboard/app.py - Analysis orchestrator → News fetcher: fetches news
main.py - News fetcher → NewsAPI: requests articles
news_pipeline/fetcher.py - News fetcher → News filter: filters articles
news_pipeline/fetcher.py - News fetcher → Event tagger: tags articles
news_pipeline/fetcher.py - Analysis orchestrator → Event tagger: tags articles
main.py - Analysis orchestrator → Company signals: generates signals
main.py - Analysis orchestrator → Gold signal: generates verdict
main.py - Analysis orchestrator → Reddit collection: summarizes mood
main.py - Company signals → Company mapper: gets affected firms
signal_engine/scorer.py - Company mapper → Company database: loads companies
company_database/sector_mapper.py - Company signals → Reddit collection: gets psychology summary
signal_engine/scorer.py - Reddit collection → Reddit: fetches posts
sentiment_layer/reddit_scraper.py - Reddit collection → Psychology scoring: scores text
sentiment_layer/reddit_scraper.py - Gold signal → Reddit collection: gets psychology summary
gold_module/gold_signal.py - Company chatbot → Company mapper: checks exposure
dashboard/chatbot.py - Company chatbot → Psychology scoring: analyzes news text
dashboard/chatbot.py - Company chatbot → Google News: fetches company news
dashboard/chatbot.py - Company chatbot → NewsAPI: fetches company news
dashboard/chatbot.py - Company chatbot → Watchlist file: reads and writes
dashboard/chatbot.py