Created
April 21, 2023 01:01
-
-
Save reizist/f1069bd3675b484d2b0b8138f4ce2296 to your computer and use it in GitHub Desktop.
AmazonProductAPIメモ(JAN=>ASINを試みた)
This file contains hidden or 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
from amazon.paapi import AmazonAPI | |
import sys | |
if __name__ == "__main__": | |
amazon = AmazonAPI("ACCESS_KEY", "SECRET_KEY", "AFF_TAG","JP") | |
try: | |
products = amazon.get_items(item_ids=["4971633002005"], item_id_type="EAN") | |
except Exception as e: | |
print(e) | |
sys.exit(e) | |
print(products[0].asin) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
直近30日のアフィ実績ないとだめ