TottoriOpenDataCatalog
This gem provides an API and a CLI for Open Data Catalog of Tottori Prefecture http://db.pref.tottori.jp/opendataResearch.nsf to generate a machine-readable catalog.
Installation
$ gem install tottori-opendata-catalog
Synopsis
API
Example1:
require 'tottori-opendata-catalog'
# TottoriOpenDataCatalog.get returns a nested ruby's object.
puts TottoriOpenDataCatalog.get
Example2: Without caching
require 'tottori-opendata-catalog'
# without caching which uses a local storage (/tmp).
puts TottoriOpenDataCatalog.get(cache:false)
CLI
$ tottori-opendata-catalog csv > catalog.csv
$ tottori-opendata-catalog json > catalog.json
$ tottori-opendata-catalog json --no-cache > catalog.json
Development
Specs
$ bundle install
$ bundle exec rake spec
Updating example/example.csv
$ bundle install
$ bundle exec ruby bin/tottori-opendata-catalog csv > example/example.csv
Author
Masayuki Higashino
License
The MIT License