Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    python-amazon-simple-product-api 1.1.2

    Download button

    No screenshots available
    Downloads: 233  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Yoav Aviram | More programs
    BSD License / FREE
    September 9th, 2012, 23:19 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    python-amazon-simple-product-api description

    A simple Python wrapper for the Amazon.com Product Advertising API

    python-amazon-simple-product-api is a simple Python wrapper for the Amazon.com Product Advertising API.

    Usage

    Lookup:

     >>> from amazon.api import AmazonAPI
     >>> amazon = AmazonAPI(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG)
     >>> product = amazon.get_by_asin("B0051QVF7A")
     >>> product.title
     'Kindle, Wi-Fi, 6" E Ink Display - for international shipment'
     >>> product.price_and_currency
     (109.0, 'USD')
     >>> product.ean
     '0814916014354'
     >>> product.large_image_url
     'http://ecx.images-amazon.com/images/I/411H+731ZzL.jpg'
     >>> product.get_attribute('Publisher')
     'Amazon Digital Services, Inc'
     >>> product.get_attributes(['ItemDimensions.Width', 'ItemDimensions.Height'])
     {'ItemDimensions.Width': '450', 'ItemDimensions.Height': '34'}


    The API wrapper supports many other product attributes as well.

    Search:

     >>> from amazon.api import AmazonAPI
     >>> amazon = AmazonAPI(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG)
     >>> products = amazon.search(Keywords='kindle', SearchIndex='All')
     >>> for i, product in enumerate(products):
     >>> print "{0}. '{1}'".format(i, product.title)
     0. 'Kindle, Wi-Fi, 6" E Ink Display - includes Special Offers & Sponsored Screensavers'
     1. 'Kindle Fire, Full Color 7" Multi-touch Display, Wi-Fi'
     2. 'Kindle US Power Adapter (Not included with Kindle or Kindle Touch)'
     3. 'Kindle Touch, Wi-Fi, 6" E Ink Display - includes Special Offers & Sponsored Screensavers'
     4. 'Kindle Keyboard 3G, Free 3G + Wi-Fi, 6" E Ink Display - includes Special Offers & Sponsored Screensavers'
     5. 'Kindle Touch 3G, Free 3G + Wi-Fi, 6" E Ink Display - includes Special Offers & Sponsored Screensavers'
     ...

     49. 'Kindle Wireless Reading Device (6" Display, U.S. Wireless)'

    The search method returns an iterable that will iterate through all products, on all pages available. Additional pages are retrieved automatically as needed. Keep in mind that Amazon limits the number of pages it makes available.

    For more information about these calls, please consult the Product Advertising API Developer Guide.


    Product's homepage

    Here are some key features of "python-amazon-simple-product-api":

    · An object oriented interface to Amazon products
    · Supports both item search and item lookup
    · Compatible with Google App Engine

    Requirements:

    · Python
    · Bottlenose
    · An Amazon Product Advertising account
    · An AWS account

      


    TAGS:

    Amazon.com product API | Python library | Python | Amazon.com | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM