<div dir="ltr">There are quite a few RSS libraries in Ruby, but none seem popular.<div><br></div><div style>Nokogiri and some kind of high performance HTTP client seems to be the standard way of processing RSS feeds.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 4, 2013 at 3:44 AM, Michael Mokrysz <span dir="ltr"><<a href="mailto:sites@46bit.com" target="_blank">sites@46bit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>This is a bit of a non-answer, but if the content of those feeds isn't too complex, you could just parse them with a generic XML parser like Nokogiri (or whatever is fashionable now). Getting all recent LRUG meeting titles, links and descriptions, for example, is just a few lines of code:</div>
</blockquote><div><br></div></div><div>Aha - that's brilliant, thanks a lot Niko. I'd started to wonder if I was missing the obvious, seems I was.</div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote">
On Fri, May 3, 2013 at 8:52 PM, Niko Felger <span dir="ltr"><<a href="mailto:niko.felger@gmail.com" target="_blank">niko.felger@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Michael,<div><br></div><div>This is a bit of a non-answer, but if the content of those feeds isn't too complex, you could just parse them with a generic XML parser like Nokogiri (or whatever is fashionable now). Getting all recent LRUG meeting titles, links and descriptions, for example, is just a few lines of code:</div>
<div><br></div><div><div><font face="courier new, monospace">require 'rubygems'</font></div><div><font face="courier new, monospace">require 'nokogiri'</font></div><div><font face="courier new, monospace">require 'open-uri'</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">url = '<a href="http://lrug.org/rss/meetings/" target="_blank">http://lrug.org/rss/meetings/</a>'</font></div><div>
<font face="courier new, monospace">doc = Nokogiri::XML(open(url) {|file| file.read})</font></div>
<div><font face="courier new, monospace">doc.css('item').each do |item|</font></div><div><font face="courier new, monospace"> puts <a href="http://item.at" target="_blank">item.at</a>('title').text</font></div>
<div><font face="courier new, monospace"> puts <a href="http://item.at" target="_blank">item.at</a>('link').text</font></div>
<div><font face="courier new, monospace"> puts <a href="http://item.at" target="_blank">item.at</a>('description').text[0..250]</font></div><div><font face="courier new, monospace">end</font></div></div>
<div><br></div><div>HTH,</div><div>Niko</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Fri, May 3, 2013 at 11:56 PM, Michael Mokrysz <span dir="ltr"><<a href="mailto:sites@46bit.com" target="_blank">sites@46bit.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div>Howdy,</div><div><br></div><div>I'd like to parse a few dozen RSS feeds with Ruby, but I'm not sure how best to parse them. Any recommendations between <a href="http://www.ruby-doc.org/stdlib-2.0/libdoc/rss/rdoc/RSS.html" target="_blank">RSS in Stdlib</a> or a gem?</div>
<div><br></div><div>Thanks,</div><div>Michael Mokrysz</div>
<br></div></div>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org" target="_blank">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br></div></div>
</blockquote></div><br>
</div></div><br>_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><a href="http://richardconroy.blogspot.com" target="_blank">http://richardconroy.blogspot.com</a> | <a href="http://twitter.com/RichardConroy" target="_blank">http://twitter.com/RichardConroy</a></div>
</div>