$ python post_entry.py
Feb. 27th, 2019 08:03 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
I continue to post regularly on Dreamwidth, so I’ve extended my previous script for turning Markdown into Dreamwidth HTML, and written another script that asks me a few questions about filters and title, then posts the entry for me.
Everything I’ve posted in the last fortnight came through this script.
Code here if you’re interested:
There are some weirdnesses in how the API handles filters when posting an entry, so if you want to use it I’d test it on something innocuous first. As usual, code is in the “junk drawer” repo because it’s not especially well-documented, and provided more as a “here is a useful starting point for your own script”, not a finished article.
no subject
Date: 2019-02-27 08:07 pm (UTC)no subject
Date: 2019-02-27 08:15 pm (UTC)And thanks for the offer, but I think I’m probably okay? I’m just using a standard Python library with one customisation (
@kaberett
expands to<user name=kaberett>
). The useful bit is getting to write posts in my standard text editor, less so Markdown/HTML.Wades right in where kabarett is diplomatic
Date: 2020-03-16 08:45 pm (UTC)https://jesse-the-k.dreamwidth.org/tag/markdown
as well as DW's built-in at-sign shortcut to usernames.