Hi all,
Just catching up on Calibre and came across this thread. I'd
love Amazon support!
I've attached a proof of concept script, amazon_calibre_working.py (just run it standalone to see the AWS interface in action). You just need to edit in an AWS access key and AWS secret key, which are freely available, at the top of the script. It was pretty straight forward thanks to the
boto module. There's also a version of what "/src/calibre/ebooks/metadata/amazon.py" might look like with boto. Is there anyway to use calibre-debug with an external module? If there is I'll try debugging my amazon.py. I'm sure there's also a way to code it without boto, I just hate re-inventing the wheel.
With just an ISBN, AWS can give you information like this:
Quote:
Originally Posted by Output of amazon_calibre_working.py
Title: Star Trek: Destiny: Mere Mortals
Author: David Mack
Publisher: Star Trek
Publication Date: 2008-10-28
Number of Pages: 448
Cover URL: http://ecx.images-amazon.com/images/I/51oMcKExvlL.jpg
Average Rating: 4.5
Number of Reviews: 17
Tags: General & Literary Fiction, Space opera, Radio and television novels, Science fiction, Star trek fiction, American Science Fiction And Fantasy, Fiction, Fiction - Science Fiction, Movie/Tv Tie-Ins, Fiction / Media Tie-In, Fiction / Science Fiction / General, Fiction / Science Fiction / Space Opera, Science Fiction - Star Trek, Media Tie-In - General, Science Fiction - Space Opera, Science Fiction & Fantasy,
Editorial Review: On Earth, Federation President Nanietta Bacco gathers allies and adversaries to form a desperate last line of defense against an impending Borg invasion. In deep space, Captain Jean-Luc Picard and Captain Ezri Dax join together to cut off the Collective's route to the Alpha Quadrant.<P>Half a galaxy away, Captain William Riker and the crew of the <I>Starship Titan</i> have made contact with the reclusive Caeliar -- survivors of a stellar cataclysm that, two hundred years ago, drove fissures through the structure of space and time, creating a loop of inevitability and consigning another captain and crew to a purgatory from which they could never escape.<P>Now the supremely advanced Caeliar will brook no further intrusion upon their isolation, or against the sanctity of their Great Work....For the small, finite lives of mere mortals carry little weight in the calculations of gods.<P>But even gods may come to understand that they underestimate humans at their peril.
|
Since August this year, you now need to add a signature to your AWS requests, complicating the interface. I had this working last year with the old interface and had noticed that my rating script stopped working this summer. Thanks to boto the change wasn't a big deal and I'll be using this to keep adding the Amazon ratings to all my books. It would be great if it was a part of Calibre.