bcylin / exchange-rate-parser

Parse the webpage https://rate.bot.com.tw/xrt?Lang=en-US and extract the exchange rates as JSON format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exchange Rate Parser

License

Parse the webpage from Bank of Taiwan and extract the exchange rates as the following JSON:

{
  "url": "https://rate.bot.com.tw/xrt?Lang=zh-TW",
  "updated_at": "2015/09/30 16:01",
  "count": 19,
  "results": {
    "USD": {
      "selling_rate": "32.52000",
      "buying_rate": "33.06200",
      "cash_selling_rate": "32.82000",
      "cash_buying_rate": "32.92000",
      "name": "美金 (USD)"
    },
    // ...
  }
}

Deploy

https://#{app-name}.herokuapp.com/rates.json

Test Locally

Install required gems:

bundle install

Test with shotgun:

open http://localhost:9393/rates.json && shotgun app.rb

License

The source code is released under the MIT license.

Disclaimer

This parser is not affiliated with Bank of Taiwan in any form. This license only grants the use of source code. Anyone who uses this parser is responsible for the use of data, which belongs to Bank of Taiwan. The correctness of the data depends on the disclosed information from http://rate.bot.com.tw/Pages/Static/UIP003.zh-TW.htm.

About

Parse the webpage https://rate.bot.com.tw/xrt?Lang=en-US and extract the exchange rates as JSON format.

License:MIT License


Languages

Language:Ruby 94.0%Language:Makefile 3.6%Language:Procfile 2.4%