Skip to content

Commit 89a7aca

Browse files
committed
Merge branch 'developer'
2 parents 4375f17 + e7a5ea2 commit 89a7aca

10 files changed

Lines changed: 1215 additions & 636 deletions

File tree

.gitignore

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Custom folders and files to ignore
2+
.vscode/
3+
.DS_Store
4+
5+
6+
# Byte-compiled / optimized / DLL files
7+
__pycache__/
8+
*.py[cod]
9+
*$py.class
10+
11+
# C extensions
12+
*.so
13+
14+
# Distribution / packaging
15+
.Python
16+
build/
17+
develop-eggs/
18+
dist/
19+
downloads/
20+
eggs/
21+
.eggs/
22+
lib/
23+
lib64/
24+
parts/
25+
sdist/
26+
var/
27+
wheels/
28+
*.egg-info/
29+
.installed.cfg
30+
*.egg
31+
MANIFEST
32+
33+
# PyInstaller
34+
# Usually these files are written by a python script from a template
35+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
36+
*.manifest
37+
*.spec
38+
39+
# Installer logs
40+
pip-log.txt
41+
pip-delete-this-directory.txt
42+
43+
# Unit test / coverage reports
44+
htmlcov/
45+
.tox/
46+
.coverage
47+
.coverage.*
48+
.cache
49+
nosetests.xml
50+
coverage.xml
51+
*.cover
52+
.hypothesis/
53+
.pytest_cache/
54+
55+
# Translations
56+
*.mo
57+
*.pot
58+
59+
# Django stuff:
60+
*.log
61+
local_settings.py
62+
db.sqlite3
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# pyenv
81+
.python-version
82+
83+
# celery beat schedule file
84+
celerybeat-schedule
85+
86+
# SageMath parsed files
87+
*.sage.py
88+
89+
# Environments
90+
.env
91+
.venv
92+
env/
93+
venv/
94+
ENV/
95+
env.bak/
96+
venv.bak/
97+
98+
# Spyder project settings
99+
.spyderproject
100+
.spyproject
101+
102+
# Rope project settings
103+
.ropeproject
104+
105+
# mkdocs documentation
106+
/site
107+
108+
# mypy
109+
.mypy_cache/

PRODUCT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
product
22
asin
3+
parent_asin
34
title
45
url
56
raw_info

README.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ Features
1414

1515
* Object oriented interface for simple usage.
1616
* Get information about a product through its ASIN or URL.
17-
* Get multiple products at once without the 10 products limitation from Amazon.
17+
* Get item variations or search for products on Amazon.
18+
* Get multiple results at once without the 10 items limitation from Amazon.
1819
* Configurable throttling to avoid requests exceptions.
1920
* Support for all available countries.
2021
* Reorganized product information [structure](https://github.com/sergioteula/python-amazon-paapi/blob/master/PRODUCT.md) for simple use.
@@ -47,13 +48,33 @@ Use URL insted of ASIN:
4748

4849
product = amazon.get_product('https://www.amazon.com/dp/B01N5IB20Q')
4950

51+
Get product variations:
52+
53+
product = amazon.get_variations('B01N5IB20Q')
54+
print(product[0].title)
55+
56+
Search product:
57+
58+
product = amazon.search_products(item_count=25, keywords='speaker')
59+
print(product[14].url)
60+
5061
Get the ASIN from a URL:
5162

52-
from amazon.paapi import get_asin
63+
from amazon.tools import get_asin
5364
asin = get_asin('https://www.amazon.com/dp/B01N5IB20Q')
5465

5566
Changelog
5667
-------------
68+
Version 3.0.0
69+
- Added search_products and get_variations methods.
70+
- Removed Amazon API requests limit for all methods.
71+
- Created AmazonException for better exception handling.
72+
- Added asynchronous requests compatibility.
73+
- Added parent_ASIN to product instance.
74+
- Cleaned code for more consistent style.
75+
- Updated docstrings for all methods.
76+
- Updated project structure.
77+
5778
Version 2.1.1
5879
- Added get_product for single requests.
5980

@@ -85,3 +106,7 @@ Changelog
85106

86107
Version 0.1.0
87108
-First release.
109+
110+
License
111+
-------------
112+
Copyright © 2020 Sergio Abad. See [license](https://github.com/sergioteula/python-amazon-paapi/blob/master/LICENSE) for details.

amazon/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Amazon Product Advertising API 5.0 wrapper for Python"""
1+
"""Amazon Product Advertising API wrapper for Python"""
22

3-
__version__ = '1.0.0'
3+
__version__ = '3.0.0'
44
__author__ = 'Sergio Abad'

0 commit comments

Comments
 (0)