ryanwold.net

A civic-minded citizen seeking the singularity

An entry

Kindle Highlights

Date: 2014-10-16
Status: release
Tags: kindle api webscraping quantifiedself

Today, I made a few highlights in my Kindle on the way to work. Then, I wanted to throw all the text somewhere and do something with it. Searching kindle api yielded unsatisfactory results, but kindle ruby led me to a kindle-highlights ruby .gem that scrapes the kindle website and makes the data available for reuse.

@client = KindleHighlights::Client.new(username, password)
@client.books 
# book_id's for hash keys, 'highlights' for hash values

My Kindle Highlights are viewable online here, and are updated at least once per week, by an automated job.