Rubyrss is a project mainly written in Ruby, based on the MIT license.
RubyRSS Eating feeds tastefully
Elegant as Ruby RSS parser and generator intended to help you bring together Ruby and RSS in your project. Features include creation of custom (x)HTML news blocks from remote RSS feeds, generation of RSS feeds using templates, and more.
RubyRSS depends on SimpleRSS library. To install it you can use following command:
gem install simple-rss --remote
HOW TO PARSE RSS-FEED
require "rubyrss"
rss = RubyRSS.new "http://www.games-mix.com/rss-feed.xml" rss.parse
HOW TO GENERATE RSS-FEED
require "rubyrss"
rss = RubyRSS.new "rss-feed.xml" rss.title = "Sample RSS-feed" rss.link = "http://www.rubyrss.com" rss.desc = "Sample RSS-feed generated by RubyRSS" rss.date = Time.now.gmtime 1.upto(10) { |i| rss.items << RubyRSS::Item.new( "title-" + i.to_s, "#" + String(i), "description-#{i}", Time.now.gmtime ) } rss.generate "rss2.0"
CHANGES v1.1 Jun 10
v1.0 Jun 09
Copyright (c) 2006 Sergey Tikhonov [email protected] Distributed under MIT License