alexwlchan: (Default)
[personal profile] alexwlchan

Now I'm posting more on Dreamwidth, I want a way to keep an offline copy of everything I've written here. (I am almost hoarder-like in my desire to keep copies of everything I’ve written.)

Hooray for sites with sensible APIs! Dreamwidth has an XML-RPC API, so I've written a short script that grabs a copy of all my posts. It saves a JSON file with all the data from the API, and an HTML file for convenience (and grep).

If Python is your thing and you'd find it useful (or just want another example of using the Dreamwidth API), code is on GitHub:

https://github.com/alexwlchan/junkdrawer/blob/55b32a7896915c4d8a4246279a718e69dc61df8f/services/dreamwidth/backup_posts.py

(Usage instructions in the docstring; whole repo is MIT.)

Date: 2019-02-10 10:58 am (UTC)
tickletheory: (Default)
From: [personal profile] tickletheory
This is pretty neat. I’ll try it one of these days. Thanks! 😊

Profile

alexwlchan: (Default)
alexwlchan

February 2019

S M T W T F S
      12
3456789
10111213141516
17181920212223
242526 2728  

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 25th, 2026 06:33 am
Powered by Dreamwidth Studios