Basic FeedZirra Example


/ Published in: Ruby

Fetches an RSS feed and displays the title and summary of each entry. Nothing fancy.


Copy this code and paste it in your HTML
  1. require "feedzirra"
  2.  
  3. feed = Feedzirra::Feed.fetch_and_parse('http://feeds.feedburner.com/railscasts')
  4. feed.entries.each do |entry|
  5. puts "#{entry.title}\n#{entry.summary}\n\n"
  6. end

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.