require 'MeCab' require 'rss' require 'mechanize' require 'kconv' require 'hpricot' require 'open-uri' module MeCab class Node def category return self.feature.split(/,/)[0] end def each(&b) b[self] self.next.each(&b) if self.next end end end agent = WWW::Mechanize.new page = agent.get('http://d.hatena.ne.jp/akio0911/archive') # ãã¼ã¸ãéã m = MeCab::Tagger.new h={} # ã¨ã³ããªã¸ã®ãªã³ã¯ãæ½åº page.links_with(:hre
{{#tags}}- {{label}}
{{/tags}}