Feb. 10th, 2019

alexwlchan: (Default)

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.)

Profile

alexwlchan: (Default)
alexwlchan

February 2019

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

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 6th, 2025 01:41 am
Powered by Dreamwidth Studios