Giter Site home page Giter Site logo

nathanwiegand / python-amazon-product-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mutaku/python-amazon-product-api

0.0 1.0 0.0 3.39 MB

Mirror of my bitbucket repository

Home Page: http://bitbucket.org/basti/python-amazon-product-api

License: BSD 3-Clause "New" or "Revised" License

Python 99.16% HTML 0.22% Shell 0.62%

python-amazon-product-api's Introduction

Python bindings for Amazon's Product Advertising API

This module offers a light-weight access to the latest version of the Amazon Product Advertising API without getting in your way.

The Amazon Product Advertising API provides programmatic access to Amazon's product selection and discovery functionality. It has search and look up capabilities, provides information on products and other features such as Reviews, Similar Products and New and Used listings.

Basic usage

In order to use this API you'll obviously need an Amazon Associates Web Service account for which you must with Amazon at http://aws.amazon.com. Each account contains an AWSAccessKeyId and a SecretKey.

Create a file ~/.amazon-product-api containing the following data:

[Credentials]
access_key = <your access key>
secret_key = <your secret key>
associate_tag = <your associate id>

Here is an example how to use the API to search for books of a certain publisher:

from amazonproduct import API
api = API(locale='de')

# get all books from result set and
# print author and title
for book in api.item_search('Books', Publisher='Galileo Press'):
    print '%s: "%s"' % (book.ItemAttributes.Author,
                        book.ItemAttributes.Title)

In the background the API will iteratively retrieve all available result pages from Amazon and return each book in turn as a lxml.objectified element.

In general, this module offers a number of convenience methods that will deal with the nitty-gritty details like error checking so you won't have to. Please refer to the extensive documentation for more details.

Installation

In order to install python-amazon-product-api you can use:

pip install python-amazon-product-api

or download the source package from http://pypi.python.org/pypi/python-amazon-product-api, untar it and run

python setup.py install

You'll also find binaries there to make your life easier if you happen to use a Windows system. If not, please send me an e-mail and complain loudly!

Development

The development version is available bitbucket.org. Feel free to clone the repository and add your own features.

hg clone http://bitbucket.org/basti/python-amazon-product-api/

Patches are always welcome! Please make sure that your change does not break the tests!

License

This module is release under the BSD License. You can find the full text of the license in the LICENSE file.

python-amazon-product-api's People

Contributors

evrial avatar jayfk avatar kespindler avatar liorsion avatar michilu avatar redtoad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.