This is a small abstract code from one of our projects. Basically, it scraps the websites, subtract the necessary values, convert to hash and return as JSON. Warning : As it's a scrapper, the results may vary as the layout of the website varies. Please open an issue if you notice it.
It currently supports the following banks.
It can be run as a command line tool or a web application.
$ git clone https://github.com/Zwenexsys/myanbanks_currency_api
$ cd myanbanks_currency_api
$ bundle install
$ ruby cmd.rb <AGB (or) CB (or) KBZ>
$ ruby app.rb
The web app should be running at http://localhost:4567
.
It accepts bank codes as GET
params. (agd (or) cb (or) kbz)
- 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
) - Create new Pull Request
GNU GENERAL PUBLIC LICENSE V2