Auto-publish investing quotes from legendary investors to grow your audience and drive traffic to keeprule.com.
- 365 curated investing quotes from Buffett, Munger, Graham, Lynch, Dalio, Fisher, Howard Marks, Soros, Templeton, and more
- Multi-platform support: Bluesky, Telegram, Twitter/X
- 4 post templates: quote only, with context, with discussion question, thread
- Automatic deduplication - cycles through all quotes before repeating
- Dry-run mode for previewing posts
- Statistics tracking
- Cron-ready for fully automated scheduling
# Install dependencies
pip install requests python-dotenv
# Optional: for Twitter support
pip install tweepy
# Configure credentials
cp .env.example .env
# Edit .env with your API keys
# Preview a post (no publishing)
python bot.py --dry-run --platform bluesky
# Publish to Bluesky
python bot.py --platform bluesky
# Publish to all platforms
python bot.py --platform all
# Use a specific template
python bot.py --platform bluesky --template quote_with_question
# Post a thread
python bot.py --platform bluesky --template thread
# View statistics
python bot.py --list-statsCreate a .env file with your credentials:
# Bluesky
BLUESKY_HANDLE=yourname.bsky.social
BLUESKY_APP_PASSWORD=xxxx-xxxx-xxxx-xxxx
# Telegram
TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
TELEGRAM_CHANNEL_ID=@yourchannel
# Twitter/X
TWITTER_API_KEY=xxxxx
TWITTER_API_SECRET=xxxxx
TWITTER_ACCESS_TOKEN=xxxxx
TWITTER_ACCESS_SECRET=xxxxx# Weekday posts at 9 AM and 5 PM ET
0 13 * * 1-5 cd /path/to/keeprule-quote-bot && python3 bot.py --platform all --template quote_only >> /tmp/quote-bot.log 2>&1
0 21 * * 1-5 cd /path/to/keeprule-quote-bot && python3 bot.py --platform all --template quote_with_question >> /tmp/quote-bot.log 2>&1
# Weekend post at 10 AM ET
0 14 * * 0,6 cd /path/to/keeprule-quote-bot && python3 bot.py --platform all --template quote_with_context >> /tmp/quote-bot.log 2>&1See schedule.md for the full publishing strategy.
| Author | Count |
|---|---|
| Warren Buffett | 100 |
| Charlie Munger | 60 |
| Benjamin Graham | 40 |
| Peter Lynch | 30 |
| Ray Dalio | 30 |
| Philip Fisher | 25 |
| Howard Marks | 25 |
| George Soros | 15 |
| John Templeton | 15 |
| Other masters | 25 |
| Template | Use case |
|---|---|
quote_only |
Clean, minimal format. Best for daily posts. |
quote_with_context |
Adds background story. Good for weekends. |
quote_with_question |
Drives engagement with a discussion prompt. |
thread |
3-part thread for deeper content. Best on Thursdays. |
keeprule-quote-bot/
├── bot.py # Main bot script
├── quotes.json # 365 investing quotes
├── posted.json # Auto-generated: tracks posted quotes
├── templates/ # Post format templates
│ ├── template_quote_only.txt
│ ├── template_quote_with_context.txt
│ ├── template_quote_with_question.txt
│ └── template_thread.txt
├── schedule.md # Publishing strategy & cron config
├── .env.example # Environment variable template
├── .gitignore # Git ignore rules
└── README.md # This file
MIT
- Investor Personality Quiz - Which legendary investor are you?
- Investment Scorecard - Rate any stock like Buffett
- Portfolio Health Check - Grade your portfolio
- Fear & Greed Calculator - Market sentiment tool
- Decision Tree - Buy/Hold/Sell guidance
- Investment Calculators - Compound interest, retirement, DCA & more
- 30-Day Challenge - Transform your investing
- Free API - 100 principles, 20 authors
- NPM Package -
npm install keeprule - PyPI Package -
pip install keeprule - Chrome Extension
- Discord Bot
- Embeddable Widget
- Master Guides - Buffett, Munger, Graham & more
- Free Ebook - 100 Investment Principles
- Email Course - 7-day Buffett course
- Infographics - Visual investing guides
- Investment Glossary - 100 terms every investor should know
- Annual Report - State of Investment Principles 2026
- SEO Blog - Deep-dive investing articles
- Platform Comparisons - KeepRule vs alternatives
Built by William Wang | All Tools