<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I used stdlib RSS and it served me well:</div><div><br></div><div><a href="https://github.com/artemave/lj-friends-feed/blob/master/lib/rss_items_extractor.rb">https://github.com/artemave/lj-friends-feed/blob/master/lib/rss_items_extractor.rb</a></div><div><br></div><div>Artem</div><br><div><div>On 4 May 2013, at 10:30, <a href="mailto:chat-request@lists.lrug.org">chat-request@lists.lrug.org</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Send Chat mailing list submissions to<br><span class="Apple-tab-span" style="white-space:pre">      </span><a href="mailto:chat@lists.lrug.org">chat@lists.lrug.org</a><br><br>To subscribe or unsubscribe via the World Wide Web, visit<br><span class="Apple-tab-span" style="white-space:pre">   </span>http://lists.lrug.org/listinfo.cgi/chat-lrug.org<br>or, via email, send a message with subject or body 'help' to<br><span class="Apple-tab-span" style="white-space:pre">    </span>chat-request@lists.lrug.org<br><br>You can reach the person managing the list at<br><span class="Apple-tab-span" style="white-space:pre">      </span>chat-owner@lists.lrug.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Chat digest..."<br><br><br>Today's Topics:<br><br>   1. Parsing RSS in Ruby (Michael Mokrysz)<br>   2. Re: Parsing RSS in Ruby (Niko Felger)<br>   3. Re: Parsing RSS in Ruby (Michael Mokrysz)<br>   4. Re: Parsing RSS in Ruby (Richard Conroy)<br>   5. Re: Parsing RSS in Ruby (Jordan Elver)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Fri, 3 May 2013 17:56:55 -0400<br>From: Michael Mokrysz <sites@46bit.com><br>To: "chat@lists.lrug.org" <chat@lists.lrug.org><br>Subject: [LRUG] Parsing RSS in Ruby<br>Message-ID:<br><span class="Apple-tab-span" style="white-space:pre">     </span><CAF4GLVjXf3b7iu9a2kit_g5PmPyOaUy6BqsVAkYpX_=u_sTJbA@mail.gmail.com><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Howdy,<br><br>I'd like to parse a few dozen RSS feeds with Ruby, but I'm not sure how<br>best to parse them. Any recommendations between RSS in<br>Stdlib<http://www.ruby-doc.org/stdlib-2.0/libdoc/rss/rdoc/RSS.html>or<br>a gem?<br><br>Thanks,<br>Michael Mokrysz<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130503/96684e27/attachment-0001.htm><br><br>------------------------------<br><br>Message: 2<br>Date: Sat, 4 May 2013 02:52:24 +0200<br>From: Niko Felger <niko.felger@gmail.com><br>To: Michael Mokrysz <sites@46bit.com><br>Cc: "chat@lists.lrug.org" <chat@lists.lrug.org><br>Subject: Re: [LRUG] Parsing RSS in Ruby<br>Message-ID:<br><span class="Apple-tab-span" style="white-space:pre">  </span><CANcVQUcJKCAiHoJx1H9iLg7BS13Gr3nh5bVe_pcTsC5xYRv88w@mail.gmail.com><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi Michael,<br><br>This is a bit of a non-answer, but if the content of those feeds isn't too<br>complex, you could just parse them with a generic XML parser like Nokogiri<br>(or whatever is fashionable now). Getting all recent LRUG meeting titles,<br>links and descriptions, for example, is just a few lines of code:<br><br>require 'rubygems'<br>require 'nokogiri'<br>require 'open-uri'<br><br>url = 'http://lrug.org/rss/meetings/'<br>doc = Nokogiri::XML(open(url) {|file| file.read})<br>doc.css('item').each do |item|<br>  puts item.at('title').text<br>  puts item.at('link').text<br>  puts item.at('description').text[0..250]<br>end<br><br>HTH,<br>Niko<br><br><br>On Fri, May 3, 2013 at 11:56 PM, Michael Mokrysz <sites@46bit.com> wrote:<br><br><blockquote type="cite">Howdy,<br><br>I'd like to parse a few dozen RSS feeds with Ruby, but I'm not sure how<br>best to parse them. Any recommendations between RSS in Stdlib<http://www.ruby-doc.org/stdlib-2.0/libdoc/rss/rdoc/RSS.html>or a gem?<br><br>Thanks,<br>Michael Mokrysz<br><br>_______________________________________________<br>Chat mailing list<br>Chat@lists.lrug.org<br>http://lists.lrug.org/listinfo.cgi/chat-lrug.org<br><br><br></blockquote>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130504/70f2031f/attachment-0001.htm><br><br>------------------------------<br><br>Message: 3<br>Date: Fri, 3 May 2013 22:44:12 -0400<br>From: Michael Mokrysz <sites@46bit.com><br>To: Niko Felger <niko.felger@gmail.com><br>Cc: "chat@lists.lrug.org" <chat@lists.lrug.org><br>Subject: Re: [LRUG] Parsing RSS in Ruby<br>Message-ID:<br><span class="Apple-tab-span" style="white-space:pre">      </span><CAF4GLVgCncQA=+yQ8hwf2eCQswFNWLSNrWKGq+tWhyyY1txa8w@mail.gmail.com><br>Content-Type: text/plain; charset="iso-8859-1"<br><br><blockquote type="cite"><br>This is a bit of a non-answer, but if the content of those feeds isn't too<br>complex, you could just parse them with a generic XML parser like Nokogiri<br>(or whatever is fashionable now). Getting all recent LRUG meeting titles,<br>links and descriptions, for example, is just a few lines of code:<br><br></blockquote><br>Aha - that's brilliant, thanks a lot Niko. I'd started to wonder if I was<br>missing the obvious, seems I was.<br><br>On Fri, May 3, 2013 at 8:52 PM, Niko Felger <niko.felger@gmail.com> wrote:<br><br><blockquote type="cite">Hi Michael,<br><br>This is a bit of a non-answer, but if the content of those feeds isn't too<br>complex, you could just parse them with a generic XML parser like Nokogiri<br>(or whatever is fashionable now). Getting all recent LRUG meeting titles,<br>links and descriptions, for example, is just a few lines of code:<br><br>require 'rubygems'<br>require 'nokogiri'<br>require 'open-uri'<br><br>url = 'http://lrug.org/rss/meetings/'<br>doc = Nokogiri::XML(open(url) {|file| file.read})<br>doc.css('item').each do |item|<br>  puts item.at('title').text<br>  puts item.at('link').text<br>  puts item.at('description').text[0..250]<br>end<br><br>HTH,<br>Niko<br><br><br>On Fri, May 3, 2013 at 11:56 PM, Michael Mokrysz <sites@46bit.com> wrote:<br><br><blockquote type="cite">Howdy,<br><br>I'd like to parse a few dozen RSS feeds with Ruby, but I'm not sure how<br>best to parse them. Any recommendations between RSS in Stdlib<http://www.ruby-doc.org/stdlib-2.0/libdoc/rss/rdoc/RSS.html>or a gem?<br><br>Thanks,<br>Michael Mokrysz<br><br>_______________________________________________<br>Chat mailing list<br>Chat@lists.lrug.org<br>http://lists.lrug.org/listinfo.cgi/chat-lrug.org<br><br><br></blockquote><br></blockquote>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130503/48ad0314/attachment-0001.htm><br><br>------------------------------<br><br>Message: 4<br>Date: Sat, 4 May 2013 10:17:45 +0100<br>From: Richard Conroy <richard.conroy@gmail.com><br>To: Michael Mokrysz <sites@46bit.com><br>Cc: "chat@lists.lrug.org" <chat@lists.lrug.org><br>Subject: Re: [LRUG] Parsing RSS in Ruby<br>Message-ID:<br><span class="Apple-tab-span" style="white-space:pre">   </span><CAGkXyWPfTFOS18MFyk0EKXLqdpqoBUFCKnjc5XfUQHVtNGy5ww@mail.gmail.com><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>There are quite a few RSS libraries in Ruby, but none seem popular.<br><br>Nokogiri and some kind of high performance HTTP client seems to be the<br>standard way of processing RSS feeds.<br><br><br>On Sat, May 4, 2013 at 3:44 AM, Michael Mokrysz <sites@46bit.com> wrote:<br><br><blockquote type="cite">This is a bit of a non-answer, but if the content of those feeds isn't too<br><blockquote type="cite">complex, you could just parse them with a generic XML parser like Nokogiri<br>(or whatever is fashionable now). Getting all recent LRUG meeting titles,<br>links and descriptions, for example, is just a few lines of code:<br><br></blockquote><br>Aha - that's brilliant, thanks a lot Niko. I'd started to wonder if I was<br>missing the obvious, seems I was.<br><br>On Fri, May 3, 2013 at 8:52 PM, Niko Felger <niko.felger@gmail.com> wrote:<br><br><blockquote type="cite">Hi Michael,<br><br>This is a bit of a non-answer, but if the content of those feeds isn't<br>too complex, you could just parse them with a generic XML parser like<br>Nokogiri (or whatever is fashionable now). Getting all recent LRUG meeting<br>titles, links and descriptions, for example, is just a few lines of code:<br><br>require 'rubygems'<br>require 'nokogiri'<br>require 'open-uri'<br><br>url = 'http://lrug.org/rss/meetings/'<br>doc = Nokogiri::XML(open(url) {|file| file.read})<br>doc.css('item').each do |item|<br>  puts item.at('title').text<br>  puts item.at('link').text<br>  puts item.at('description').text[0..250]<br>end<br><br>HTH,<br>Niko<br><br><br>On Fri, May 3, 2013 at 11:56 PM, Michael Mokrysz <sites@46bit.com> wrote:<br><br><blockquote type="cite">Howdy,<br><br>I'd like to parse a few dozen RSS feeds with Ruby, but I'm not sure how<br>best to parse them. Any recommendations between RSS in Stdlib<http://www.ruby-doc.org/stdlib-2.0/libdoc/rss/rdoc/RSS.html>or a gem?<br><br>Thanks,<br>Michael Mokrysz<br><br>_______________________________________________<br>Chat mailing list<br>Chat@lists.lrug.org<br>http://lists.lrug.org/listinfo.cgi/chat-lrug.org<br><br><br></blockquote><br></blockquote><br>_______________________________________________<br>Chat mailing list<br>Chat@lists.lrug.org<br>http://lists.lrug.org/listinfo.cgi/chat-lrug.org<br><br><br></blockquote><br><br>-- <br>http://richardconroy.blogspot.com | http://twitter.com/RichardConroy<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20130504/ec3229ea/attachment-0001.htm><br><br>------------------------------<br><br>Message: 5<br>Date: Sat, 4 May 2013 10:29:40 +0100<br>From: Jordan Elver <jordan.elver@gmail.com><br>To: "chat@lists.lrug.org" <chat@lists.lrug.org><br>Subject: Re: [LRUG] Parsing RSS in Ruby<br>Message-ID:<br><span class="Apple-tab-span" style="white-space:pre">       </span><CAPrgixZt=90jBYJt4zb8pepbpV9AGSudwzfrt_pA=s6a64F_Ww@mail.gmail.com><br>Content-Type: text/plain; charset=UTF-8<br><br><blockquote type="cite">Nokogiri and some kind of high performance HTTP client seems to be the<br>standard way of processing RSS feeds.<br></blockquote><br>Feedzirra seems popular for that.<br><br>https://github.com/pauldix/feedzirra<br><br><br>------------------------------<br><br>_______________________________________________<br>Chat mailing list<br>Chat@lists.lrug.org<br>http://lists.lrug.org/listinfo.cgi/chat-lrug.org<br><br><br>End of Chat Digest, Vol 88, Issue 5<br>***********************************<br></blockquote></div><br></body></html>