Package elisa :: Package extern :: Package coherence :: Module covers_by_amazon
[hide private]
[frames] | no frames]

Module covers_by_amazon

source code



Covers by Amazon

methods to retrieve covers/album art via the
Amazon E-Commerce WebService v4
http://docs.amazonwebservices.com/AWSECommerceService/2007-04-04/DG/

The licence agreement says something about only
one request per second, so we need to serialize
and delay the calls a bit.

The AWSAccessKeyId supplied is _ONLY_ for the use
in conjunction with Coherence, http://coherence.beebits.net

If you use this library in your own software please
apply for your own key @ http://www.amazon.com/webservices
and follow the rules of their license.

Especially you must add the following disclaimer in a place
that is reasonably viewable by the user of your application:

 PLEASE KEEP IN MIND THAT SOME OF THE CONTENT THAT WE
 MAKE AVAILABLE TO YOU THROUGH THIS APPLICATION COMES
 FROM AMAZON WEB SERVICES. ALL SUCH CONTENT IS PROVIDED
 TO YOU "AS IS." THIS CONTENT AND YOUR USE OF IT
 ARE SUBJECT TO CHANGE AND/OR REMOVAL AT ANY TIME.

Furthermore if you save any of the cover images you
have to take care that they are stored no longer than
a maximum of one month and requested then from Amazon
again.



Classes [hide private]
  WorkQueue
  CoverGetter
retrieve a cover image for a given ASIN,...
Variables [hide private]
  aws_server = {'ca': 'ca', 'de': 'de', 'fr': 'fr', 'jp': 'jp', ...
  aws_artist_query = '&Operation=ItemSearch&SearchIndex=Music'
  aws_asin_query = '&Operation=ItemLookup'
  aws_response_group = '&ResponseGroup=Images'
  aws_ns = 'http://webservices.amazon.com/AWSECommerceService/20...
  aws_image_size = {'large': 'LargeImage', 'medium': 'MediumImag...
Variables Details [hide private]

aws_server

Value:
{'ca': 'ca', 'de': 'de', 'fr': 'fr', 'jp': 'jp', 'uk': 'co.uk'}

aws_ns

Value:
'http://webservices.amazon.com/AWSECommerceService/2005-10-05'

aws_image_size

Value:
{'large': 'LargeImage',
 'medium': 'MediumImage',
 'small': 'SmallImage'}