RSS reader for rails application

Hi,

I was wondering if there’s an RSS reader plugin of some sort available
that will basically get the RSS feeds for me and then allow my Rails
application to take those feeds and present them on my website. Would
anybody know how I could get this to work with a rails app?

Thanks.

Quoting Sam D. [email protected]:

Hi,

I was wondering if there’s an RSS reader plugin of some sort available
that will basically get the RSS feeds for me and then allow my Rails
application to take those feeds and present them on my website. Would
anybody know how I could get this to work with a rails app?

Thanks.

Look into the FeedTools gem. It will fetch the XML given a URL, parse
it into an array of structures/hashes/accessors. Currently doesn’t do
HTTPS and the URI library has a stricter notion of valid URLs than
does one of the feeds I am interested in, but I am using it. Escaping
that one invalid URL is a workaround (it uses braces in the query
parameters).

Jeffrey

Look into the FeedTools gem. It will fetch the XML given a URL, parse
it into an array of structures/hashes/accessors. Currently doesn’t do
HTTPS and the URI library has a stricter notion of valid URLs than
does one of the feeds I am interested in, but I am using it. Escaping
that one invalid URL is a workaround (it uses braces in the query
parameters).

Jeffrey

Seriously, the URI class has been a thorn in my side since I began
work on FeedTools. It’s much, much too strict in my opinion.

Cheers,
Bob A.

AIM: sporkmonger
Jabber: [email protected]

Quoting Bob A. [email protected]:

work on FeedTools. It’s much, much too strict in my opinion.

I notice that when I plug the URL in question into Firefox, it quietly
escapes the braces. My workaround is call FeedTools, if it throws an
InvalidURL exception (IIRC), escape the URL and try again. Escaping
every URL doesn’t work; another feed URL includes hyphens in the
domain name, escaping them causes problems. For now, I have something
that works for the URLs I am reading. I agree more forgiving URI code
would be nice. However, I am leary of half-smart code.

Jeffrey

Jeffrey

That’s not the only problem.

http://science_boy.blogspot.com/atom.xml
http://www.詹��.com/feed

There’s a lot of things that the URI class dies on that escaping won’t
fix.

Cheers,
Bob A.

Bob A. wrote:

Jeffrey

That’s not the only problem.

http://science_boy.blogspot.com/atom.xml
http://www.詹�?�?�.com/feed

There’s a lot of things that the URI class dies on that escaping won’t
fix.

Cheers,
Bob A.

Is there any way to conveniently get around this URI problem. I am
using FeedTools to handle RSS feeds and am having problems dealing with
some of the RSS feed URLs. Is there a simple solution to this.

One solution that was suggested on another forum would be to use the
GentleCMS URI class instead of Ruby’s standard URI class. How can I
make this work with the feedtools gem?

Thank you,
Arkady Yerukhimovich

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs