PyDevTo
Unofficial dev.to api for python.
Features
- Implements all endpoints from https://docs.dev.to/api/
- Implements a few other api endpoints not documented but available in the source, such as users and follow_suggestions
- Includes a helper method to convert html to dev.to specific markdown, including support for dev.to specific embeds such as YouTube.
Installation
Use the package manager pip to install pydevto.
pip install pydevto
Usage
Make sure you have an api key to use the authenticated endpoints. You can get your key from https://dev.to/settings/account (You can use pydevto without an api key for some functions, such as the public articles)
import pydevto
api = pydevto.PyDevTo(api_key='MY_KEY')
api.articles() # returns list of your own published articles
Methods
import pydevto
api = pydevto.PyDevTo(api_key='MY_KEY')
api.public_articles(page=None, tag=None, username=None
…