A Ruby gem for kcna.kp(KCNA, Korean Central News Agency)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib
test
.editorconfig
.gitignore
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
Rakefile
kcna.gemspec

README.md

kcna.rb

A Ruby gem for kcna.kp(KCNA, Korean Central News Agency)

Installation

Add this line to your Gemfile and execute bundle. (recommended way)

gem 'kcna'

You can also install it by gem install kcna.

Usage

require "kcna"

kcna = KCNA.new

kcna.get_article_list.each do |article|
  content = kcna.get_article(article.id).content
  File.write("/path/to/directory/#{article.id}.txt", content)
end

See also RubyDoc.

License

MIT