Path: | lib/feedparser.rb |
Last Update: | Fri Jun 06 11:57:05 +0000 2014 |
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 }