Skip to content

EddieYY/go-crawl-store

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-crawl-store

go-crawl-store a restful API server to crawler price for online stores (大潤發, 家樂福)

Start using it

  1. Download and install it:
 $ go get github.com/EddieYY/go-crawl-store
  1. To run (test):
 $ cd $GOPATH/src/github.com/EiddieYY/go-crawl-store
 $ go run main.go

How to Query:

  • 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/大潤發/可口可樂

Releases

No releases published

Packages

No packages published

Languages