Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 512 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 512 Bytes

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