go-crawl-store a restful API server to crawler price for online stores (大潤發, 家樂福)
- Download and install it:
$ go get github.com/EddieYY/go-crawl-store
- To run (test):
$ cd $GOPATH/src/github.com/EiddieYY/go-crawl-store
$ go run main.go
- Example - Compare the price for 可口可樂 with 大潤發 & 家樂福
curl http://127.0.0.1:8080/api/v1/ALL/可口可樂
- Example - Query the real time price for 可口可樂 with 家樂福
curl http://127.0.0.1:8080/api/v1/家樂福/可口可樂
- Example - Query the real time price for 可口可樂 with 大潤發
curl http://127.0.0.1:8080/api/v1/大潤發/可口可樂