Tags: speric/kindle-highlights
Tags
Handle new Kindle Notes page (#16) Some time ago (not sure exactly when), Amazon updated their Kindle "Notes and Highlights" page. First, they changed the URL to this page, and secondly, they completely changed the structure of the page. Previously, it was possible to figure out which URL was serving up the JSON which drove the highlights, and after logging in, simply fetch highlights via that URL. As best I can tell, that has also changed. Now, the URL which serves up the highlights data returns HTML. As a result, I made some significant changes. In the interest of [overcoming my obsession with stringly-typed Ruby](http://confreaks.tv/videos/rubyconf2014-overcoming-our-obsession-with-stringly-typed-ruby), I've introduced `Book` and `Highlight` classes. Highlights are fetched through the `Book` class, via the Mechanize agent. Additionally, highlights are losing the following information: ``` "customerId" "embeddedId" "endLocation" "howLongAgo" "startLocation" "timestamp" ``` Unfortunately, it became too difficult at this time to figure out how to get that information from the "new" endpoint. I welcome anyone taking a shot at getting that information back into the `Highlight` class. Since these are breaking changes, I will bump the version to 2.0 and cut a new release sometime soon.