
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
amazon-reviews-crawler
Advanced tools
Crawls product reviews from Amazon.
Via npm:
npm install amazon-reviews-crawler
Or Yarn:
yarn add amazon-reviews-crawler
var reviewsCrawler = require('amazon-reviews-crawler')
reviewsCrawler('0062472100')
.then(function(results){
console.log(results)
})
.catch(function(err){
console.error(err)
})
This will return an object containing the title of the product and an array of review data.
Example of a return:
{
title: "Product Name",
reviews: [
{
id: "R16DIYH5RRPEWK",
title: "Review Title",
rating: 5,
text: "The product review body text.",
author: "Reviewer Name"
date: "October 26, 2016",
link: "https://www.amazon.com/gp/customer-reviews/R16DIYH5RRPEWK/ref=cm_cr_arp_d_rvw_ttl?ie=UTF8&ASIN=0062472100"
}
]
}
Options can also be provided to change the user agent string, review page, or elements being crawled.
Example:
reviewsCrawler('0062472100', {
page: 'https://www.amazon.com/product-reviews/{{asin}}',
userAgent: 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0',
elements: {
// Searches whole page
productTitle: '.product-title',
reviewBlock: '.review',
// Searches within elements.reviewBlock
link: 'a',
title: '.review-title',
rating: '.review-rating',
ratingPattern: 'a-star-',
text: '.review-text',
author: '.review-byline a',
date: '.review-date'
},
// Stops crawling when it hits a particular review ID
// Useful for only crawling new reviews
stopAtReviewId: false
})
.then(console.log)
.catch(console.error)
FAQs
Crawls product reviews from Amazon.
The npm package amazon-reviews-crawler receives a total of 2 weekly downloads. As such, amazon-reviews-crawler popularity was classified as not popular.
We found that amazon-reviews-crawler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.