From 4b6c0e31385f5f27a151088c0a2b614495c4e589 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Thu, 14 Oct 2021 12:47:50 -0400 Subject: initial commit, including theme --- content/posts/2004-03-21-syndic8-ruby-0-1-0.html | 47 ++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 content/posts/2004-03-21-syndic8-ruby-0-1-0.html (limited to 'content/posts/2004-03-21-syndic8-ruby-0-1-0.html') diff --git a/content/posts/2004-03-21-syndic8-ruby-0-1-0.html b/content/posts/2004-03-21-syndic8-ruby-0-1-0.html new file mode 100644 index 0000000..804144b --- /dev/null +++ b/content/posts/2004-03-21-syndic8-ruby-0-1-0.html @@ -0,0 +1,47 @@ +--- +date: "2004-03-21T09:33:44Z" +title: Syndic8-Ruby 0.1.0 +--- + +

+Here's a set of quick Ruby +bindings for Syndic8.com (via +XML-RPC). Using these bindings is dirt simple; here's some sample code: +

+ +
+
+require 'syndic8'
+search_str = 'cooking'
+
+begin
+  s = Syndic8.new
+  s.find(search_str).each { |feed| p feed }
+rescue
+  puts "Error: #$!"
+end
+
+
+ +

+You can also run Syndic8-Ruby from the command-line. Here's an example: +

+ +
+ +$ ruby ./syndic8.rb bread | head -4
+"Andy's Spot (BlackCat)","http://blackcat.editthispage.com/xml/rss.xml"
+"ANN.lu","http://www.ann.lu/ANN.rdf"
+"bread, coffee, chocolate, yoga","http://home.earthlink.net/~frelkins/blogger_rss.xml"
+"Breadcrumbs","http://ovocyte.tripod.com/crumbs/crumbs_rss.xml"
+"Bring your best, I can take it","http://www.livejournal.com/users/wonderbreadjn/data/rss"
+
+
+ +

+Syndic8-Ruby: tarball, signature. +

+ -- cgit v1.2.3