How sarthakbakshi-sar/test works
Viral Finance Content Machine is a CLI that discovers finance topics, ranks them, generates X threads and Substack drafts, saves both as Markdown, and can optionally post threads to X. The graph follows calls visible in the excerpts; source-specific fetching and external API interactions are shown where the fetcher and publisher excerpts identify them. The README is empty, and unsampled fetcher details are not inferred.
Main entry points: main.py Run workflow · fetcher.py Discover topics · publisher.py Save and post · generator.py Generate content
Components 14
CLI orchestration
- Run workflow
main.py
Topic and content pipeline
- Discover topics
src/fetcher.py - Rank topics
src/scorer.py - Domain models
src/models.py - Generate content
src/generator.py
External integrations
- Finance RSS feeds
- Hacker News
- Google Trends
- Anthropic Claude
- X platform
Content delivery
- Save and post
src/publisher.py - Markdown output
Other components
- CLI user
Connections 16
- CLI user → Run workflow: runs CLI
main.py - Run workflow → Discover topics: fetches topics
main.py - Discover topics → Finance RSS feeds: reads feeds
src/fetcher.py - Discover topics → Reddit: fetches posts
src/fetcher.py - Discover topics → Hacker News: queries API
src/fetcher.py - Discover topics → Google Trends: queries trends
src/fetcher.py - Discover topics → Domain models: creates topics
src/fetcher.py - Run workflow → Rank topics: ranks topics
main.py - Rank topics → Domain models: scores topics
src/scorer.py - Run workflow → Generate content: generates drafts
main.py - Generate content → Anthropic Claude: requests generation
src/generator.py - Generate content → Domain models: creates drafts
src/generator.py - Run workflow → Save and post: saves drafts
main.py - Run workflow → Save and post: posts optionally
main.py - Save and post → Markdown output: writes Markdown
src/publisher.py - Save and post → X platform: posts thread
src/publisher.py