Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

How to parse any RSS feed in seconds with Ruby

By Peter Cooper / June 8, 2006

It's quick and easy (to do, not necessarily to parse!).

Step one: Install the FeedTools gem with gem install feedtools

Step two: Use the following code:

require 'rubygems'
require_gem 'feedtools'

feed ='')

puts "Feed title is #{feed.title}"

feed.items.each do |item|
  puts "#{item.title} - #{}"

Step three: Learn more with the official tutorial and API documentation.

Step four: You are now the King of all feeds.

Other Posts to Enjoy

Twitter Mentions