You love reading your Kindle, and you make lots of highlights to review later. You also use Evernote to remember... well, just about everything. Now you can easily save each highlight as a separate note in Evernote.
Open a terminal and run...
whispernote.py myhighlights.html [email protected] gmailpassword [email protected]
...where...
myhighlights.html
is a saved file of your highlights from https://kindle.amazon.com/your_highlights[email protected]
is your Gmail accountgmailpassword
is your account password[email protected]
is your Evernote incoming email address
Whispernote uses Gmail to create a new Evernote note for each highlight in myhighlights.html.
Why Gmail? Read the rationale.
Here is a Mark Twain quote found in the 37signals book Rework:
The new note consists of two parts. The first part is the highlight itself, along with a link to open it directly on your Kindle app and read it in context. If you have Rework on Kindle, click the "Read more..." link below to try it out!
I have never let my schooling interfere with my education.
Read more at location 1396
The second part contains a Highlight ID and Batch ID. If you run Whispernote more than once on the same clippings, you can use these IDs to find duplicates.
Use these unique IDs to search for duplicate notes in Evernote.
- Highlight ID: openB002MUAJ2A1396
- Batch ID: batch20121213212540
Search Evernote for the Highlight ID to find duplicate notes, or for the Batch ID to find all the notes created in a particular session.
Whispernote is a Python script that uses the BeautifulSoup parsing library. If you haven't already, install pip, then run:
pip install BeautifulSoup4
Download whispernote.py.
It's recommended that you save a copy of the highlights page you want to process because your Kindle account pages won't load all of your highlights immediately. Instead, you must manually scroll to load more highlights (or use a plugin to scroll while you get yourself a drink).
Why not use Kindle's My Clippings.txt
? Read the rationale.
- Visit https://kindle.amazon.com.
- Click "Your Highlights".
- Scroll ALL the way down the page by holding PgDn until the page stops loading more highlights, or use a plugin like Chrome Auto Scroll.
- Save the page.
Highlights for individual books are displayed differently, so the approach is slightly different.
- Using Google Chrome, visit https://kindle.amazon.com.
- Click "Your Books".
- Click on a book title.
- Click "View Your Notes & Highlights".
- Within the pop-up, scroll down until you see a link to "Load More Notes & Highlights". Click it, then scroll again, repeating until you see "No More Notes & Highlights".
- Right-click and select "Inspect Element".
- Right-click on the
html
node in the Inspector (starting with<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/"...
) and select "Copy as HTML". - Open a text editor.
- Paste the copied text.
- Save the file.
Open a terminal and run...
whispernote.py myhighlights.html [email protected] gmailpassword [email protected]
...where...
myhighlights.html
is a saved file of your highlights from https://kindle.amazon.com/your_highlights[email protected]
is your Gmail accountgmailpassword
is your account password[email protected]
is your Evernote incoming email address
Prints the output rather than sending it to Evernote.
whispernote.py --debug myhighlights.html [email protected] gmailpassword [email protected]
or
whispernote.py --debug myhighlights.html
Limits the number of highlights sent to Evernote.
whispernote.py --limit 3 myhighlights.html [email protected] gmailpassword [email protected]
Only 3 notes will be created.
Starts processing highlights at the given position.
whispernote.py --start 50 myhighlights.html [email protected] gmailpassword [email protected]
Starts with the 50th highlight instead of the first.
Copyright (c) Matt Norris and licensed under the MIT license. See the LICENSE file for full details.
Read the Whispernote Wiki for FAQs and rationale.