Quantcast
Channel: Can I use Ruby in-built RSS module to read atom feed? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Can I use Ruby in-built RSS module to read atom feed?

$
0
0

I am in an environment where I don't have access to install any gems. I only have standard ruby (version:1.8.7) installation.

I am trying something like this:

require 'rss/1.0'require 'rss/2.0'require 'open-uri'source = "http://www.example.com/feed.atom" # url or local filecontent = "" # raw content of rss feed will be loaded hereopen(source) do |s| content = s.read endrss = RSS::Parser.parse(content, false)

When I am parsing the content, I am getting nil. So I am wondering if in-built RSS module supports parsing an atom feed.


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>