How akhilgouda28/instagram-automaton works
Current Affairs Insta turns recent news into an exam-focused Instagram post: collect and deduplicate articles, summarize them, fact-check the draft, render a branded image, host it publicly, then publish it. The README documents RSS/NewsAPI inputs, Groq summarization, GitHub image hosting, Meta publishing, and daily scheduling; sampled code also shows the template-selection and rendering layer. RAG ingestion and retrieval are present in the tree, but their implementation and wiring are not shown in the excerpts, so no connections to them are asserted.
Main entry points: main.py Pipeline runner · news_collector.py News collector · summarizer.py Exam summarizer · image_generator.py Image generator
Components 19
News collection
- News collector
src/news_collector.py - RSS feeds
config/rss_feeds.json - NewsAPI
- Seen articles
src/news_collector.py
Content preparation
- Pipeline runner
src/main.py - Exam summarizer
src/summarizer.py - Fact checker
src/agents/fact_checker.py - RAG ingestion
src/rag/ingest.py - RAG retrieval
src/rag/retriever.py
Image rendering
- Image generator
src/image_generator.py - Template manager
src/templates/template_manager.py - Exam template
src/templates/template_05.py - Brand theme
src/templates/theme.py
Publishing
- Image uploader
src/uploader.py - GitHub image host
- Instagram publisher
src/publisher.py
Other components
- Daily scheduler
- Operator
Connections 17
- Daily scheduler → Pipeline runner: runs daily
README.md - Operator → Pipeline runner: starts run
README.md - Pipeline runner → News collector: calls
src/main.py - News collector → RSS feeds: reads feeds
README.md - News collector → NewsAPI: fetches headlines
README.md - News collector → Seen articles: deduplicates against
src/news_collector.py - Pipeline runner → Exam summarizer: calls
src/main.py - Exam summarizer → RAG retrieval: retrieves facts
src/summarizer.py - Pipeline runner → Fact checker: verifies draft
src/main.py - Pipeline runner → Image generator: generates image
src/main.py - Image generator → Template manager: delegates rendering
src/image_generator.py - Template manager → Exam template: selects template
src/templates/template_manager.py - Exam template → Brand theme: uses drawing helpers
src/templates/template_05.py - Pipeline runner → Image uploader: uploads image
src/main.py - Image uploader → GitHub image host: hosts image
README.md - Pipeline runner → Instagram publisher: publishes image
src/main.py - Instagram publisher → Instagram: posts to
README.md