Posts 3x/day automatically — system design, backend tips, and career advice tailored for Indian developers.
GitHub Actions (cron 3x/day)
│
▼
TopicBank.pick_unused() ← rotates topics, no repeats
│
▼
PostGenerator (Gemini AI) ← generates LinkedIn-optimized post
│
▼
LinkedInPublisher ← posts via LinkedIn API v2 (OAuth2)
│
▼
Telegram notification ← confirms post with URL
│
▼
Topic tracker commit ← saves used topics to repo
- 3 niches — System Design, Backend/WebDev, Career Advice
- Indian context — Zomato, Swiggy, Razorpay, PhonePe examples
- No repeats — topic tracker persists across runs
- Completely free — LinkedIn API has no posting limits
- Auto-rotation — 9AM system design, 1PM webdev, 6PM career
- Telegram alerts — get notified on every post or failure
- Go to linkedin.com/developers
- Create a new app
- Add products: Sign In with LinkedIn + Share on LinkedIn
- Set redirect URI:
http://localhost:8888/callback - Copy your Client ID and Client Secret
pip install httpx
LINKEDIN_CLIENT_ID=xxx LINKEDIN_CLIENT_SECRET=yyy python get_linkedin_token.pyThis opens your browser, you log in once, and it prints:
LINKEDIN_ACCESS_TOKEN=AQV8...
LINKEDIN_PERSON_URN=urn:li:person:XXXXXXX
Token is valid for ~60 days. Re-run when it expires.
Go to repo → Settings → Secrets → Actions → add:
| Secret | Value |
|---|---|
GEMINI_API_KEY |
From ai.google.dev |
LINKEDIN_ACCESS_TOKEN |
From step 2 |
LINKEDIN_PERSON_URN |
From step 2 |
TELEGRAM_BOT_TOKEN |
Optional |
TELEGRAM_ALLOWED_USER_ID |
Optional |
Push to main → GitHub Actions runs automatically 3x/day.
Manual trigger: Actions tab → Daily LinkedIn Dev Content → Run workflow.
pip install -r requirements.txt
cp .env.example .env # fill in your values
# Dry run (no actual posting)
python -m src.pipeline --niche system_design --dry-run
# Post for real
python -m src.pipeline --niche webdev --topic "NestJS dependency injection"
# Specific niche
python -m src.pipeline --niche careerlinkedin-pipeline/
├── src/
│ ├── generators/
│ │ └── post_generator.py # Gemini AI post generation
│ └── publishers/
│ └── linkedin_publisher.py # LinkedIn API v2 OAuth2
├── config/
│ ├── settings.py # Pydantic settings
│ └── topics.py # Topic bank + rotation
├── .github/workflows/
│ └── daily_post.yml # Cron: 3x/day
├── get_linkedin_token.py # One-time auth helper
└── requirements.txt