[Python] Using python-amazon-simple-product-api to extract lowest used goods price

Discussão em 'Python' iniciado por Stack, Fevereiro 19, 2025.

  1. Stack

    Stack Membro Participativo

    I am learning to use python to extract used book price by python-amazon-simple-product-api

    Here is the code that I am currently using:

    amazon = AmazonAPI(aws_access_key,
    aws_secret_key,
    aws_associate_key)

    # products = amazon.search(Keywords=book_demanded_df['isbn01'].values[1], SearchIndex='Books')
    products = amazon.search(Keywords='B00CU0NSCU', SearchIndex='All')

    # print book_demanded_df['isbn01'].values[1]
    for i, product in enumerate(products):
    print product.title
    print product.asin
    print product.get_attribute('Manufacturer')
    print product.get_attributes(['ItemDimensions.Width', 'ItemDimensions.Height'])
    print product.offer_url


    I think the key should be at get_attributes, I tried writing something lik ItemAttributes.Amount, but things seems to be not working.

    Is it possible to do so using this API?

    Continue reading...

Compartilhe esta Página