![]() |
#1 |
Member
![]() Posts: 18
Karma: 10
Join Date: Feb 2013
Device: Kindle M2L4EK
|
3G: How to download highlights?
Is there a way to download highlights from a Kindle 3G? (yes, that old, but still good)
They're stored in a .han file. However, that's not really useful. The text is missing: Code:
{"payload":{"key":"B085YDW8TX","type":"EBOK","records":[{"endPosition":"132668","startPosition":"132556","lastModificationTime":"2021-07-22 20:35:01.535","type":"kindle.highlight"},{"text":"test","endPosition":"132668","startPosition":"132668","lastModificationTime":"2021-07-22 20:35:01.535","type":"kindle.note"},{"endPosition":"137165","startPosition":"137149","lastModificationTime":"2021-07-22 20:35:01.535","type":"kindle.highlight"},{"endPosition":"146709","startPosition":"146562","lastModificationTime":"2021-07-22 20:35:01.535","type":"kindle.highlight"},{"endPosition":"149543","startPosition":"149440","lastModificationTime":"2021-07-22 20:35:01.535","type":"kindle.highlight"},{"endPosition":"151942","startPosition":"151771","lastModificationTime":"2021-07-22 20:35:01.535","type":"kindle.highlight"},{"endPosition":"167827","startPosition":"167631","lastModificationTime":"2021-07-22 20:35:01.535","type":"kindle.highlight"},{"endPosition":"173261","startPosition":"173093","lastModificationTime":"2021-07-22 20:35:01.535","type":"kindle.highlight"},{"endPosition":"197978","startPosition":"197869","lastModificationTime":"2021-07-22 20:35:01.535","type":"kindle.highlight"},{"endPosition":"20... |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,897
Karma: 27013865
Join Date: Apr 2009
Location: USA
Device: iPhone 15PM, Kindle Scribe, iPad mini 6, PocketBook InkPad Color 3
|
If your books are not side-loaded (either purchased from Amazon or a Send To Kindle ‘personal document’), and you enable sync (default), then the highlights are in the cloud. You can use any of the Kindle apps (Fire, iOS, Android) to export them. For purchased books, there’s a website where you can view them and do copy/paste etc.
Newer Kindles will export notes and highlights directly (but only for purchased books). There is also ‘my clippings.txt’, and tools that will extract stuff from there. And I think there is way tool that could get the annotations from sidecar files for the older format. I don’t know the current status of it. Last edited by tomsem; 07-22-2021 at 06:16 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,730
Karma: 103020299
Join Date: Apr 2011
Device: pb360
|
Quote:
https://www.mobileread.com/forums/sh...d.php?t=321811 https://www.mobileread.com/forums/sh...d.php?t=322172 |
|
![]() |
![]() |
![]() |
#4 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Feb 2013
Device: Kindle M2L4EK
|
Quote:
Code:
China The Bubble that Never Pops-asin_B085YDW8TX-type_EBOK-v_0.apnx China The Bubble that Never Pops-asin_B085YDW8TX-type_EBOK-v_0.azw3 China The Bubble that Never Pops-asin_B085YDW8TX-type_EBOK-v_0.ea China The Bubble that Never Pops-asin_B085YDW8TX-type_EBOK-v_0.han China The Bubble that Never Pops-asin_B085YDW8TX-type_EBOK-v_0.phl Code:
azw3r -i 'China The Bubble that Never Pops-asin_B085YDW8TX-type_EBOK-v_0.azw3' Code:
python krds.py 'China The Bubble that Never Pops-asin_B085YDW8TX-type_EBOK-v_0.azw3' |
|
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,730
Karma: 103020299
Join Date: Apr 2011
Device: pb360
|
Both of the tools are meant to be run on .azw3r files. All the azw3 books I have store highlight and note information in azw3r files that are in some strange java related binary format. I had never heard of .han files, but it looks like they are already in a usable format, perhaps JSON. (I am not familiar enough with JSON to tell and do not have time to look into it.)
If kindleunpack works on your azw3 files you can use it to get the raw XHTML file of the book. The startPositions and endPositions in your .han file are very likely byte (or maybe character) offsets in the raw XHTML file of the highlighted text. A link to kindleunpack information is given in post #7 in the KRDS thread linked to above. |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Member
![]() Posts: 18
Karma: 10
Join Date: Feb 2013
Device: Kindle M2L4EK
|
Thanks for the suggestions! I realized that Kindle 3G is not the accurate description of my device. It’s a Kindle Keyboard 3G.
|
![]() |
![]() |
![]() |
#7 | ||
Member
![]() Posts: 18
Karma: 10
Join Date: Feb 2013
Device: Kindle M2L4EK
|
Quote:
Quote:
Interestingly I can get a list of all annotations in Duokan, which I have installed for dual-boot on my device. It’s a 20 page document, and maybe I’ll just scan that with a flatbed scanner. Kind of dumb, but way quicker than trying to reverse engineer that format. I don’t think I want to annotate with the Kindle again. This is all a pain. Fortunately, it seems to be easy to de-drm books, and then I can use another reader. |
||
![]() |
![]() |
![]() |
#8 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,730
Karma: 103020299
Join Date: Apr 2011
Device: pb360
|
Amazon startPositions and endPositions include the markup. Stripping the markup would render them useless.
|
![]() |
![]() |
![]() |
#9 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Feb 2013
Device: Kindle M2L4EK
|
Quote:
Code:
$ wc -m book.rawml 793974 book.rawml $ wc -c book.rawml 793974 book.rawml Code:
{"endPosition":"316113","startPosition":"315821","lastModificationTime":"2021-07-22 20:43:27.262","type":"kindle.highlight"} Code:
$ cut -z -c$((315821 + 15))-$((316113 + 15)) book.rawml The solution wasn&# 8217;t just another round of stimulus. After all, &# 8220;with global growth weak, using stimulus to use up excess capacity is like preparing food for two when there&# 8217;s only one guest; they could eat as much as they could and it still wouldn&# 8217;t all be gone.&# 8221; Code:
The solution wasn’t just another round of stimulus. After all, “with global growth weak, using stimulus to use up excess capacity is like preparing food for two when there’s only one guest; they could eat as much as they could and it still wouldn’t all be gone.” ![]() Last edited by feklee; 12-20-2021 at 05:42 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Download (Download all) Personal documents from Amazon | Bratnikotin | Amazon Kindle | 2 | 06-21-2020 09:58 PM |
Troubleshooting All my highlights are gone | bilgisiz | Amazon Kindle | 2 | 08-06-2019 08:05 PM |
PDF: Highlights in images correct, copied text from highlights truncated | wonderose | Android Devices | 0 | 08-02-2015 11:25 AM |
My use of highlights | rcuadro | Amazon Kindle | 2 | 05-27-2010 08:22 PM |