Just scrap-and-show API for currency exchange rates of Banks in Myanmar.
Supported banks
You will need forego to run two processes. And also install rethinkdb for storing the json.
$ go get -u github.com/ddollar/forego
$ go get -u github.com/yelinaung/banks/...
$ cd $GOPATH/src/github.com/yelinaung/banks
$ go get ./...
$ rethinkdb
$ ./run # or ./run-prod if you want to run in production
e.g put the bank name after the base url. For example,
GET
/api/v1/b/[bank name]
Example available at : http://c.yelinaung.com/api/v1/b/kbz
During debug mode, scraper runs every 20 seconds and during prod mode, the scraper runs every 2 hours.
GET
/api/v1/latest
Example available at : http://c.yelinaung.com/api/v1/latest
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
)
MIT