Skip to content

Instantly share code, notes, and snippets.

@fumokmm
Created October 24, 2009 08:18
Show Gist options
  • Save fumokmm/217438 to your computer and use it in GitHub Desktop.
Save fumokmm/217438 to your computer and use it in GitHub Desktop.
# 同フォルダにhatenahaiku4j-1.1.1.jarを読み込む
require 'hatenahaiku4j-1.1.1.jar'
# キーワードリストの1ページ目を取得しタイトルを出力
api = Java::hatenahaiku4j.HatenaHaikuAPILight.new
api.get_keyword_list.each do |k|
puts k.get_title
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment