From d71501c06188d463ce15a741832156cbe4c52831 Mon Sep 17 00:00:00 2001 From: Thomas Date: Sun, 28 Apr 2024 08:57:56 +0100 Subject: [PATCH] blog(kindle-md-highlights) --- ...04-28-tiny-project-kindle-md-highlights.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/content/blog/2024-04-28-tiny-project-kindle-md-highlights.md diff --git a/src/content/blog/2024-04-28-tiny-project-kindle-md-highlights.md b/src/content/blog/2024-04-28-tiny-project-kindle-md-highlights.md new file mode 100644 index 0000000..0d76169 --- /dev/null +++ b/src/content/blog/2024-04-28-tiny-project-kindle-md-highlights.md @@ -0,0 +1,20 @@ +--- +title: 'Tiny project: kindle-md-highlights' +date: 2024-04-28T07:57:03.086Z +slug: 2024-04-28-tiny-project-kindle-md-highlights +author: Thomas Wilson + +--- +tl;dr [source code](https://github.com/thomaswilsonxyz/kindle-md-highlights) for extracting notes and highlights from a kindle-made `.html` file. + +--- + +Since 2020 I've been running [Obsidian](https://obsidian.md/) as my notes app of choice. The hacker in me likes that it's just `.md` files all the way down (basically). + +One of the things I like to do in Obsidian is keep a track of notes I've made from books I've read. + +I'm trying to throw together a book review (for the blog) of Cal Newport's *Slow Productivity*, which I read on Kindle. so I went to extract the notes from that book (using an community-published extension that had previously worked). For some reason, it wasn't working. + +The Kindle app lets you export your highlights as a `.html` file (assuming they're <10% of the book), and so I wrote a chipper little package (just one `.js` file) that parses through the HTML file, and `console.log`s out all of your notes. + +It's hella brutalist, you have to just copy-paste the output from the terminal, but it took <1hr to throw together, and now my notes from Slow Productivity are in my Obsidian vault, and I can *get on with writing the damned review*. \ No newline at end of file