Amazon Kindle Highlights API
Okay, so Amazon doesn’t provide an API for Kindle ebook highlights, yet. They may never. But they do offer web access to them. So, until they release an API for them, I have written a simple script that can be used to grab your kindle highlights and save them locally. If you aren’t comfortable in a terminal, this may not be the best solution for you. But really it’s easy so you should give it a try.
To install the library you need Ruby and Rubygems (Which you most likely have already if you are using a Mac). In a Terminal, type:
gem install kindle
Then, to grab your highlights, run the command
kindle like below:
kindle # Will prompt you for your Amazon login info # Don't worry, the login info isn't saved anywhere
This will return a simple list, one highlight entry per line of all your highlights across all your kindle e-books:
• kindle Enter your username: email@example.com Enter your password (This is not stored): ************** Getting your kindle highlights... refectory. evening fallow. stertorous, habitues Actually, the best image to capture what a monk is can be found in the words of the Russian author Dostoyevsky, who remarks in The Brothers Karamazov that a true monk is nothing more than what everyone ought to be. As a prelude, keep in mind several general principles: never use your dog's name during a correction, never call a dog to you to discipline her, and never use an object of any kind to discipline your dog. Pay no attention to the dog for half an hour after disciplining. No Christmas decorations, either. (Of course, vampires don’t observe holidays, except for Halloween. It’s the ancient festival of Samhain dressed up in trappings that the vamps find delightful. So Halloween’s a great favorite, and it’s celebrated worldwide in the vamp community.)
If you want to see the book associated with the highlight you’ll have to wait for another version or use the library yourself in an IRB session. This usage fits my style of highlighting, which mainly includes highlighting individual words I want to add to my vocabulary.
View the source at http://github.com/lodestone/kindle.