/ Published in: Ruby

Fetches an RSS feed and displays the title and summary of each entry. Nothing fancy.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
require "feedzirra" feed = Feedzirra::Feed.fetch_and_parse('http://feeds.feedburner.com/railscasts') feed.entries.each do |entry| puts "#{entry.title}\n#{entry.summary}\n\n" end
Comments
