UNPKG

amazon-product-reviews-scraper

Version:

A nodejs package to scrape product reviews data automatically on amazon.

52 lines (38 loc) 1.31 kB
Amazon-Product-Reviews-Scraper is a nodejs package to get product reviews on amazon automatically using browser automation. It currently runs only on windows. ### Installation ```sh npm install amazon-product-reviews-scraper ``` ### Example 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) ``` ### Youtube Video [![](http://img.youtube.com/vi/FZsEJSD3a7c/0.jpg)](https://www.youtube.com/watch?v=FZsEJSD3a7c "") #### DataKund [datakund](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. ### Import ```sh var amazon=require("amazon-product-reviews-scraper"); ``` ### Open product reviews link ```sh amazon.open("product review url") ``` ### Get reviews ```sh amazon.get_reviews() ``` ### Contact Us * [Telegram](https://t.me/datakund) * [Website](https://datakund.com)