Pretty print JSON in Python (snippet)

The below depends on the json Python module to 'pretty print' JSON output in Python. I found this useful when trying to write my script to remove unused Todoist labels. import json # This function saves time printing JSON nicely def pj(str): print(json.dumps(json.loads(str.content), indent=4)) return pj(thing_containing_raw_json_here) Note that in my case this was contingent on having used the requests module in the following fashion to already make sure the format is a bit jsonified, Read more [...]

Todoist: Remove unused labels

Want to remove your unused labels/tags from Todoist in bulk? The various GUIs will have you do this one at a time but I have written a small, not very efficient Python script that will do this for you. Here's how it works: You need to provide your API token (Which you can find in Todoist settings) in a file called token.txt Then download or copy the script from my Todoist Remove Unused Tags GitHub repository Just run this using Python and it should work fine Please bear in mind I've Read more [...]

Automator for converting PDF to RTF on Mac OSX (download)

I noticed a few people around the web asking how to convert PDFs into RTF (rich text) files, a more useful, accessible format if you are doing a lot of copying and pasting etc. So I've made a really simple Automator app that will create a RTF on your desktop of any PDF you drop onto it (so I also keep that on my desktop, but it might work from the dock too). Really quick post so here are the settings: Download: Automator - Extract PDF to RTF on desktop Disclaimer: I'm not offering any Read more [...]

XML Schema for Todo/Task lists?

[Edit: added a question mark to the end of the post title, in case anyone thinks I've written something formal... ideally someone else will because I don't have anything like the know-how đŸ™‚ ] Okay, forgive me if I've got that terminology all wrong, but in practical terms I'm out of my depth here. I'm probably going over very old ground, but has anyone come up with an XML open standard/schema for declaring items on a task list or todo list (or multiple lists)? With all my indecision about Read more [...]