Skip to content

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

License

Notifications You must be signed in to change notification settings

fabon-f/kcna.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages