You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/anzellai/amazon-reviews-crawler-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/anzellai/amazon-reviews-crawler-go

v0.0.0-20190328172538-115665fd2fec
Source
Go
Version published
Created
Source

Amazon Reviews Crawler Go

Summary

Simple tool to crawl Amazon Reviews metadata from product ID(s). If running via terminal, simply pass the list of product ID(s) as argument, and pass the optioonal -out=output.json flag to export resulted json to output.json file.

If you want to crawl from different Amazon regional website, you can pass either uk or us optional region flag, if region mapping isn't found, region flag input will be used as website domain suffix.

Also, you may need to add the -ref flag to maintain a session to avoid empty results from amazon, e.g. -ref="sr_1_2?keywords=kano&qid=1553793792&s=gateway&sr=8-2"

First iteration is scripted in Python and is located at here

Setup

go get

Example

Crawling product ID "ABCDE", and run:

go run cmd/crawler/crawler.go -region=uk -out=output.json ABCDE

Or, run existing pre-built binary from /bin directory:

./bin/amazon-reviews-crawler-go-darwin -region=uk -out=output.json ABCDE

FAQs

Package last updated on 28 Mar 2019

Did you know?

Socket

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.

Install

Related posts