Amazon Product Advertising API 5.0 wrapper for Python
Project description
Amazon Product Advertising API 5.0 wrapper for Python
A simple Python wrapper for the last version of the Amazon Product Advertising API. This module allows to get product information from Amazon using the official API in an easier way.
Features
- Object oriented interface for simple usage.
- Get information about a product through its ASIN or URL.
- Get multiple products at once.
- Configurable throttling to avoid requests exceptions.
- Support for all available countries.
- Reorganized product information structure for simple use.
- Ask for new features through the issues section.
Installation
You can install or upgrade the module with:
pip install python-amazon-paapi --upgrade
Usage guide
Basic usage:
from amazon.paapi import AmazonAPI
amazon = AmazonAPI(KEY, SECRET, TAG, COUNTRY)
product = amazon.get_product('B01N5IB20Q')
print(product.title)
Get multiple product information:
product = amazon.get_product('B01N5IB20Q,B01F9G43WU')
print(product[0].images.large)
print(product[1].prices.price.value)
Use URL insted of ASIN:
product = amazon.get_product('https://www.amazon.com/dp/B01N5IB20Q')
Get the ASIN from a URL:
from amazon.paapi import get_asin
asin = get_asin('https://www.amazon.com/dp/B01N5IB20Q')
Changelog
Version 2.0.0
- New structure for product info, adding all available information from the API.
- Added raw_data with the information unparsed from the API.
-Removed Amazon API version from package name to avoid changes in the future.
Version 1.0.0
- Added support for getting multiple product information.
- Added compatibiliy with Amazon URL search.
- New function for getting the ASIN for a given URL.
- Removed Amazon SDK and added as a requirement.
- Updated docstrings.
- Updated README with changelog, more examples and badges.
Version 0.1.1
- Added currency support for prices.
Version 0.1.0
-First release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for python-amazon-paapi-2.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ea954ce802f296e3f020584e8e120b47aec5f29fe389c9b6abe06add7f0b10a |
|
MD5 | 9bb2220f163944a5e825d4aad86be72b |
|
BLAKE2b-256 | 8a56215a16cab03d4148bdded5da93b73371d05c8c857802d10b04ad9202cbe4 |
Close
Hashes for python_amazon_paapi-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b610dba25d52692c7c9958490903f40abf458b45adb70bdbc7e0167c62413827 |
|
MD5 | 44c52930e9b69f7691538e947d5111e2 |
|
BLAKE2b-256 | 68631cf3041048c7f2b40fb6a3fcd5f2f63d16ea993b24f87c1ba580c9515a1c |