README.en

$Id: README.en 378 2009-05-16 03:00:50Z kou $

Name

RSS Parser

Author

Kouhei Sutou <kou@cozmixng.org>

Licence

Ruby's

Note

What's this?

This library can parse RSS(RDF Site Summary) 1.0, RSS 0.9x/2.0 excluding 0.90 and Atom 1.0 with validation (or non validation).

This library is included in ruby's distribution file.

Dependency library

Suggested library

Download

<URL:http://www.cozmixng.org/~kou/download/rss.tar.gz>

% svn co http://www.cozmixng.org/repos/rss/trunk rss

Install

% ruby setup.rb config
% ruby setup.rb setup
# ruby setup.rb install

or

# ruby setup.rb

FAQ

I want to parse RSS 0.90

Sometimes RSS 0.90 can be treated as RSS 1.0. If you need to parse an RSS 0.90 feed try to run the following:

def rss090_to_rss10(feed)
  feed.sub(%r{xmlns=(['"])http://my.netscape.com/rdf/simple/0.9/\1},
           'xmlns="http://purl.org/rss/1.0/"')
end
rss = RSS::Parser.parse(rss090_to_rss10(feed), false)

Thanks

Powered by COZMIXNG

COZMIXNG