How to publish posts via the dev.to API
Every time I copied a post into the dev.to editor, added tags and cleaned up the formatting, I’d wonder whether there was a way to automate it. If you have the same question, this article is for you. The answer: the dev.to API. In this post I’ll show you two ways to use it. First a curl command, so you’ll see the exact request the API expects. Then a Python script that automates it. I’ll also cover the one thing that trips people up: images. ...