Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get product rating and number of reviews? #158

Open
iranzo opened this issue Jul 23, 2019 · 1 comment
Open

Is it possible to get product rating and number of reviews? #158

iranzo opened this issue Jul 23, 2019 · 1 comment

Comments

@iranzo
Copy link

iranzo commented Jul 23, 2019

I would like to get product rating and number of reviews, how do I achieve that?

Thanks

@norman-thomas
Copy link
Contributor

Sadly, this is somewhat awkward to access.
The PA API provides a URL to an iframe, which contains the rating and reviews rendered as HTML.
This is described in the documentation: https://docs.aws.amazon.com/AWSECommerceService/latest/DG/ItemLookup.html

The iframe URL can be accessed using the reviews property of a AmazonProduct instance.
From there on, you'll have to parse the HTML returned to you. It's visually similar to the review section you can see on the Amazon product pages, but slightly different in its HTML structure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants