amazon-product-reviews-scraper
Version:
A nodejs package to scrape product reviews data automatically on amazon.
52 lines (38 loc) • 1.31 kB
Markdown
Amazon-Product-Reviews-Scraper is a nodejs package to get product reviews on amazon automatically using browser automation.
It currently runs only on windows.
```sh
npm install amazon-product-reviews-scraper
```
In this example we first import package, then we get reviews of product.
```sh
var amazon=require("amazon-product-reviews-scraper");
function print_data(response){
var data=response["body"]
console.log("reviews data",data)
}
function get_data(){
amazon.get_reviews(print_data)
}
amazon.open("https://www.amazon.in/Intellilens%C2%AE-Spectacles-Anti-glare-Protection-Computer/product-reviews/B07JCKYCJ1/ref=cm_cr_dp_d_show_all_btm?ie=UTF8&reviewerType=all_reviews",get_data)
```
[](https://www.youtube.com/watch?v=FZsEJSD3a7c "")
[](https://www.npmjs.com/package/datakund) is needed for browser automation. As soon as this package is imported in code, automated browser will open up.
```sh
var amazon=require("amazon-product-reviews-scraper");
```
```sh
amazon.open("product review url")
```
```sh
amazon.get_reviews()
```
* [Telegram](https://t.me/datakund)
* [Website](https://datakund.com)