Open xz0405 opened 7 years ago
codes: amazon = AmazonAPI(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG) try: product = amazon.lookup(ItemId='B00E4VIC4C') except Exception as e: print(e) product = amazon.lookup(ItemId = 'B005GUQCGK') print('%s' % product.sales_rank) print('%s' % product.title)
console result: [root@ amazon_api]# python -u test_amazon_api.py None Everest Gym Bag with Wet Pocket, Red, One Size
codes: amazon = AmazonAPI(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG) try: product = amazon.lookup(ItemId='B00E4VIC4C') except Exception as e: print(e) product = amazon.lookup(ItemId = 'B005GUQCGK') print('%s' % product.sales_rank) print('%s' % product.title)
console result: [root@ amazon_api]# python -u test_amazon_api.py None Everest Gym Bag with Wet Pocket, Red, One Size