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. -- Posted via http://www.ruby-forum.com/.
Quoting Sam Donaldson <samonderous@gmail.com>:> 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). > > JeffreySeriously, 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 Aman -- AIM: sporkmonger Jabber: sporkmonger@jabber.org
Quoting Bob Aman <vacindak@gmail.com>:> >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. >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
> > 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. > > 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. > > JeffreyThat''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 Aman -- AIM: sporkmonger Jabber: sporkmonger@jabber.org
Bob Aman 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 AmanIs 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---