Sha256: 4b0f4dfec2314b1d91742b88bb0e290e302dccd5effa6c030052954f784ec85d
Contents?: true
Size: 328 Bytes
Versions: 5
Compression:
Stored size: 328 Bytes
Contents
module Twog module RssParser def parse_feed(rss_feed_url) raise Exception.new('RSS feed missing') unless rss_feed_url rss = RSS::Parser.parse(get_content(rss_feed_url), false) rss.items end def get_content(rss_feed_url) open(rss_feed_url) do |f| f.read end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
twog-0.3.5 | lib/twog/rss_parser.rb |
twog-0.3.4 | lib/twog/rss_parser.rb |
twog-0.3.3 | lib/twog/rss_parser.rb |
twog-0.3.2 | lib/twog/rss_parser.rb |
twog-0.3.1 | lib/twog/rss_parser.rb |