-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74fddca
commit ccde267
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
from amazon_paapi import AmazonApi | ||
import secrets | ||
|
||
|
||
amazon = AmazonApi(secrets.KEY, secrets.SECRET, secrets.TAG, secrets.COUNTRY, throttling=2) | ||
|
||
|
||
print('\nGet items') | ||
print('=========================================================') | ||
product = amazon.get_items('B01N5IB20Q') | ||
print(product[0].item_info.title.display_value) | ||
|
||
|
||
print('Search items') | ||
print('=========================================================') | ||
items = amazon.search_items(keywords='nintendo', item_count=3) | ||
for item in items.items: | ||
print(item.item_info.title.display_value) | ||
|
||
|
||
print('\nGet variations') | ||
print('=========================================================') | ||
items = amazon.get_variations('B08F63PPNV', variation_count=3) | ||
for item in items.items: | ||
print(item.item_info.title.display_value) | ||
|
||
|
||
print('\nGet nodes') | ||
print('=========================================================') | ||
items = amazon.get_browse_nodes(['667049031']) # Only available in spanish marketplace | ||
for item in items: | ||
print(item.display_name) |