A simple script to upload my hugo markdown pages to medium.
-
Create a
.mdfile for the blog (see the demo file./article/article.md) -
Create a file with name
tokenin the same directory asapp.py. And paste your medium integration token in that file. -
Run
app.pyand pass the path of the article to be uploaded.
python3 app.py ./article/article.md
This will upload the article to medium.
- Add feature to handle local images
- make a better config file.
- Better error handling and useful messages