require 'rss' require 'net/http' Net::HTTP.version_1_2 hotentries = '' url = 'http://www.rmake-labo.com/akasata/' rss_source = Net::HTTP.get('b.hatena.ne.jp', "/entrylist?cname=&url=#{CGI.escape(url)}&sort=count&mode=rss") rss = RSS::Parser.parse(rss_source) rss.items.each do |item| hotentries += <<-EOS