# RSS reader for rails application

**URL:** <https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781>\
**Category:** Rails\
**Created:** [June 19, 2006, 9:09am UTC](https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781 "2006-06-19T09:09:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![samonderous](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Post date:** [June 19, 2006, 9:09am UTC](https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781/1 "2006-06-19T09:09:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![samonderous](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Post date:** [June 21, 2006, 9:11am UTC](https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781/2 "2006-06-21T09:11:02Z")

</div>

Quoting Sam D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 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

---

<div class="post-metadata">

**Author:** ![samonderous](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Post date:** [June 21, 2006, 5:42pm UTC](https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781/3 "2006-06-21T17:42:56Z")

</div>

> 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: removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![samonderous](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Post date:** [June 21, 2006, 5:55pm UTC](https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781/4 "2006-06-21T17:55:58Z")

</div>

Quoting Bob A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 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

---

<div class="post-metadata">

**Author:** ![samonderous](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Post date:** [June 21, 2006, 7:46pm UTC](https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781/5 "2006-06-21T19:46:26Z")

</div>

> Jeffrey

That’s not the only problem.

http://science\_boy.blogspot.com/atom.xml  
[http://www.è©¹å](http://www.xn--gba6a2ij)§?æ?[¯.com/feed](http://xn--mba.com/feed)

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

Cheers,  
Bob A.

---

<div class="post-metadata">

**Author:** ![samonderous](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@samonderous](https://www.ruby-forum.com/u/samonderous)\
**Post date:** [June 22, 2007, 4:22am UTC](https://www.ruby-forum.com/t/rss-reader-for-rails-application/63781/6 "2007-06-22T04:22:12Z")

</div>

Bob A. wrote:

> > Jeffrey
> 
> That’s not the only problem.
> 
> http://science\_boy.blogspot.com/atom.xml  
> [http://www.è©¹ï](http://www.xn--gba6a9i4a)¿½?ï¿½?ï¿[½.com/feed](http://xn--0ba.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
