How ssaillesh/news_engine works
Trump News Archive captures public government and syndication records into a normalized archive, then provides offline enrichment and a searchable dashboard/API. CLI commands initiate ingest, analysis, and serving; source modules fetch and normalize records, while shared HTTP and storage layers support those workflows. README capabilities guide inclusion of unsampled source adapters and summarization; their internal call links are omitted where source was not shown.
Main entry points: cli.py Archiver CLI · publishers.py Publisher RSS · repositories.py Repositories · federal_register.py Federal Register
Components 23
Source capture
- Federal Register
src/archiver/sources/federal_register.py - Presidential documents
src/archiver/sources/presidential_documents.py - White House RSS
src/archiver/sources/white_house.py - Google News RSS
src/archiver/sources/trump_news.py - Publisher RSS
src/archiver/sources/publishers.py
Archive core
- HTTP client
src/archiver/clients/base.py - Rate limiter
src/archiver/clients/rate_limit.py - RSS parsing
src/archiver/parsing/rss.py - Text parsing
src/archiver/parsing/text.py - Content hashing
src/archiver/domain/hashing.py - Database sessions
src/archiver/storage/db.py - Archive schema
src/archiver/storage/models.py - Repositories
src/archiver/storage/repositories.py
Analysis and briefings
- Story classification
src/archiver/analysis/classify.py - Impact signals
src/archiver/analysis/signals.py - Sentiment scoring
src/archiver/analysis/pipeline.py - AI summarization
src/archiver/analysis/pipeline.py - Story briefings
src/archiver/briefings/generator.py
Reader access
- Archiver CLI
src/archiver/cli.py - Dashboard and API
src/archiver/web/app.py - Dashboard page
src/archiver/web/page.py
Other components
- Researcher
- Analysis provider
Connections 35
- Researcher → Archiver CLI: runs commands
README.md - Archiver CLI → Federal Register: starts ingest
src/archiver/cli.py - Archiver CLI → Presidential documents: starts ingest
src/archiver/cli.py - Archiver CLI → White House RSS: starts ingest
src/archiver/cli.py - Archiver CLI → Google News RSS: starts ingest
src/archiver/cli.py - Archiver CLI → Publisher RSS: starts ingest
src/archiver/cli.py - Federal Register → HTTP client: fetches records
src/archiver/sources/federal_register.py - Federal Register → Text parsing: extracts body
src/archiver/sources/federal_register.py - Federal Register → Content hashing: hashes content
src/archiver/sources/federal_register.py - Federal Register → Repositories: upserts records
src/archiver/sources/federal_register.py - White House RSS → HTTP client: fetches feed
src/archiver/sources/white_house.py - White House RSS → RSS parsing: parses feed
src/archiver/sources/white_house.py - White House RSS → Text parsing: cleans text
src/archiver/sources/white_house.py - White House RSS → Repositories: upserts records
src/archiver/sources/white_house.py - Publisher RSS → HTTP client: fetches feeds
src/archiver/sources/publishers.py - Publisher RSS → RSS parsing: parses feeds
src/archiver/sources/publishers.py - Publisher RSS → Text parsing: cleans text
src/archiver/sources/publishers.py - Publisher RSS → Content hashing: hashes content
src/archiver/sources/publishers.py - Publisher RSS → Repositories: upserts records
src/archiver/sources/publishers.py - HTTP client → Rate limiter: paces requests
src/archiver/clients/base.py - Repositories → Archive schema: writes archive
src/archiver/storage/repositories.py - Database sessions → Archive schema: creates schema
src/archiver/storage/db.py - Archiver CLI → Sentiment scoring: starts scoring
src/archiver/cli.py - Archiver CLI → AI summarization: starts summarization
src/archiver/cli.py - Sentiment scoring → Database sessions: reads statuses
src/archiver/analysis/pipeline.py - Sentiment scoring → Repositories: stores readings
src/archiver/analysis/pipeline.py - AI summarization → Database sessions: reads statuses
src/archiver/analysis/pipeline.py - AI summarization → Repositories: stores summaries
src/archiver/analysis/pipeline.py - Archiver CLI → Story classification: starts classification
src/archiver/cli.py - Story classification → Impact signals: uses signals
src/archiver/analysis/classify.py - Researcher → Dashboard and API: browses archive
README.md - Dashboard and API → Dashboard page: renders dashboard
src/archiver/web/app.py - Dashboard and API → Database sessions: queries archive
src/archiver/web/app.py - Dashboard and API → Story briefings: requests analysis
src/archiver/web/app.py - Story briefings → Analysis provider: requests generation
README.md