View Single Post
Old 08-21-2021, 06:30 PM   #553
Rellwood
Library Breeder (She/Her)
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 1,285
Karma: 1937891
Join Date: Apr 2015
Location: Fullerton, California
Device: Paperwhite 2015 (2), PW 2024 (12 GEN), PW 2023 (11 GEN), Scribe (1st)
Quote:
Originally Posted by Twirlip View Post
Is there an easy way to get Amazon Kindle book purchase dates into Calibre? The purchase dates are on Amazon's "Manage Your Content and Devices" webpage.

I couldn't get Import List's web page option to work - I get "Failed to run load_page_in_browser" (someone mentioned it doesn't work on pages that require authentication). I also couldn't get the clipboard option to work - I think because when I copy from the web page, metadata from a single book is spread over multiple lines of text (see below).

I finally managed to copy from the webpage to a text file, use a Python EBNF parser (attached) to convert to CSV, then use the CSV option to import to Calibre.

Also, this website is also good for parsing the Amazon lists

https://www.ardenstone.com/2015/01/1...s-from-amazon/

Did I miss a simpler option? Or could Import List be modified to allow importing of this kind of data? I would like to go straight from the Amazon webpage into Calibre, without messing about with intermediate files.

The cut-n-paste data I'm trying to read looks like this. The author(s) and purchase date are concatenated together. The "..." in the data are really there, that's not me eliding content. The single digits are the number of collections I've put the book in (which for me is none):
Code:
...
The Consuming Fire (The Interdependency Book 2) (English Edition) 
John Scalzi18 December 2019
0
...
The Collapsing Empire (The Interdependency Book 1) (English Edition) 
READ
John Scalzi10 December 2019
0
...
Shadow Captain (Revenger) (English Edition) 
Alastair Reynolds18 October 2019
0
...
Revenger (English Edition) 
Alastair Reynolds17 October 2019
0
...
Permafrost (English Edition) 
Update Available
Alastair Reynolds12 October 2019
0
This is from amazon.de (hence the reference to English editions), in case you get different results from other countries.

Finally, thanks to whoever for a really usefull plugin
I don't know if Amazon has changed their Content and Devices page from your country, but in the US it has changed so that the 200 book list without covers where you can easily copy/paste/parse the list has changed to 20 books at a time with the full color covers- no copy/pasting or parsing is available - also it is the same with the Kindle Unlimited list. You can only go to the dedicated Kindle Unlimited page where their list is also in a non-copy/paste/parse style.

If it isn't this way for you now, then your parsing should be fine, however if they do change it there are some ways to get your information into Calibre. However it isn't as easy as it was before. Let me know if this is the case.
Rellwood is offline   Reply With Quote