require 'httpclient' client = HTTPClient.new client.get_content("http://cookpad.scom/search/post",:keyword => "キャベツ") #これは確認用 io = File.open("output.html","w") io.puts client.get_content("http://cookpad.com/search/post", :keyword => "キャベツ") io.close
出力は以下。