I was looking to try a non-kindle e-reader, but my library kept weighing me down. While I had calibre and the de-drm plugin, I found the downloaded books on my kindle were in kfx format and weren't playing well with calibre, even with the kfx input plugin.
Further, I found downloading books directly from web (Amazon > content library) did give me an azw3 file, which works well with de-drm.
To automate part of the process, I wrote a short js script. It doesn't walk through all the pages in content library, but it does download all the books currently visible on the list. Amazon lets us view 25 books per page, so I just had to switch pages, run script, repeat.
The meat of this script is constructing the url used to start a download. Device type, serial number, customer id etc. will be different for everyone, so it's best to download one book manually and check the network inspector for the request details. Apart from the book's key
, all other details remain same for all the books (at least they did for me).
Notes:
- I take no guarantees this will work for you.
- I do not support piracy in any form. I used this just to move my library to another device that I own, not to distribute the files to anyone.
- If you don't understand any of the code or don't know what to do with it, it might be difficult for you to get this working. It goes in the 'console', which can be accessed from network tools in browser. I used firefox to run this.