| Path: | lib/feedparser.rb |
| Last Update: | Thu Nov 24 08:50:58 UTC 2005 |
| License: | Ruby’s license (see the LICENSE file) or GNU GPL, at your option. |
Website::http://home.gna.org/ruby-feedparser/
Ruby-Feedparser is an RSS and Atom parser for Ruby. Ruby-feedparser is :
require 'net/http'
require 'feedparser'
require 'uri'
s = Net::HTTP::get URI::parse('http://rss.slashdot.org/Slashdot/slashdot')
f = FeedParser::Feed::new(s)
f.title
=> "Slashdot"
f.items.each { |i| puts i.title }
[...]
require 'feedparser/html-output'
f.items.each { |i| puts i.to_html }