https://github.com/sudolife/shopify
An easy-to-use crawler to keep track of reviews of an app on Shopify.
https://github.com/sudolife/shopify
crawler go golang shopify
Last synced: about 1 month ago
JSON representation
An easy-to-use crawler to keep track of reviews of an app on Shopify.
- Host: GitHub
- URL: https://github.com/sudolife/shopify
- Owner: sudoLife
- License: mit
- Created: 2019-06-14T14:05:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-31T16:23:13.000Z (almost 4 years ago)
- Last Synced: 2024-06-19T19:44:04.349Z (about 2 years ago)
- Topics: crawler, go, golang, shopify
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Shopify reviews crawler
======
[](https://goreportcard.com/report/github.com/sudoLife/shopify)
***Shopify reviews crawler*** fetches all reviews of an app from [Shopify app store](https://apps.shopify.com/)
### Installation
``` shell
$ go get -u github.com/sudoLife/shopify
```
### Example Code
``` go
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:
``` shell
$ go run get-reviews.go
```
### Third party libraries
* [Colly](https://github.com/gocolly/colly/)