Quantcast
Channel: Active questions tagged feedjira+ruby-on-rails+rss - Stack Overflow
Viewing all articles
Browse latest Browse all 16

Rails: How can I parse an RSS file with Feedjira

$
0
0

I'm trying to parse an RSS file. It throws a 404 response when I do:

Feedjira::Feed.fetch_and_parse url

So I thought trying:

Feedjira::Parser::RSS.parse url

But that returns 0 entries

This is exactly what I'm trying:

<% Feedjira::Parser::RSS.parse("my url here").entries.each do |e| %>

    <%= "#{e.title}" %><br />

<% end %>

The rss file is being parse with no problem with php in another web. This is the structure:

    <rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
        <channel>
            <title>Title here</title>
            ... etc ...
            <item>
                <title>Title here</title>
                 ... etc ...
            </item>
            <item> ... etc ... </item>
        </channel>
    </rss>

Viewing all articles
Browse latest Browse all 16

Trending Articles



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