Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.03 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.03 KB

Shopify reviews crawler

Go Report Card

Buy Me A Coffee

Shopify reviews crawler fetches all reviews of an app from Shopify app store

Installation

$ go get -u github.com/sudoLife/shopify

Example Code

import (
	"encoding/json"
	"os"
	"github.com/sudoLife/shopify"
)

func main() {
	reviews := shopify.Parse("https://apps.shopify.com/YourApp/reviews")
	enc := json.NewEncoder(os.Stdout)
	enc.SetIndent("", " ")
	
	enc.Encode(reviews)
}

Usage

After above code has been saved as something like get-reviews.go, run the following command to scrape the data in JSON:

$ go run get-reviews.go

Third party libraries