I Built a Tool to Batch-Publish Articles to Dev.to
If you publish regularly on Dev.to, you know the pain of clicking "New Post" → pasting markdown → setting tags → publishing → repeat 10 times.
I write technical articles across multiple platforms, and maintaining content on Dev.to was taking too long. So I built a Python script that does it all in one command.
The Problem
Dev.to has a great API, but:
- No native bulk publish feature
- Each article requires manual tagging and formatting
- Session management isn't trivial
- The API key approach requires extra setup
The Solution
A Python script that:
- Reads all your markdown files from a directory
- Auto-parses YAML frontmatter (title, tags, series)
- Logs into Dev.to via email/password or API key
- Publishes every article in sequence
- Logs success/failure for each post
Total time to publish 10 articles: ~30 seconds.
How It Works
# Example usage
python publish_devto.py
# → Enter email + password
# → All .md files in ./articles/ get published
# → Each gets its own title, tags, and canonical URL
The script handles:
- ✅ CSRF token extraction and session management
- ✅ YAML frontmatter parsing (title, tags, series, published status)
- ✅ Rate limiting (Dev.to allows ~1 post per 30 seconds)
- ✅ Error logging with retry logic
- ✅ Duplicate detection (won't repost if already published)
Verified in Production
This isn't a toy — I've used it to publish 4 real articles on Dev.to:
- "Meet Tian AI" — Offline AI assistant introduction
- "Tian AI vs ChatGPT" — Privacy comparison
- "Self-Evolving AI Architecture" — Technical deep dive
- "TFinancial OS" — Trading platform overview
All 4 went live without issues.
Get It
The script is available as a one-time purchase:
- Basic ($15 USDT): Complete scripts + documentation
- Full ($29 USDT): Source code with comments + cron scheduling setup + remote assistance
Payment: USDT (TRC-20) only.
TNeUMpbwWFcv6v7tYHmkFkE7gC5eWzqbrs
After payment, contact me with the transaction hash and I'll send you the download link.
Why one-time purchase instead of subscription? Because you should own your tools. No monthly fees, no cloud dependency, just a script that works.
Questions? Feedback? Drop a comment below or reach out on Telegram.
Top comments (0)