Home > Article > Backend Development > Parsing RSS code example using FeedTools
require 'rubygems' require 'feed_tools' feed = FeedTools::Feed.open('http://www.rubyinside.com/feed/') puts "This feed's title is #{feed.title}" puts "This feed's Web site is at #{feed.link}" feed.items.each do |item| puts item.title + "\n---\n" + item.description + "\n\n" end
The above is the detailed content of Parsing RSS code example using FeedTools. For more information, please follow other related articles on the PHP Chinese website!