aboutsummaryrefslogtreecommitdiff
path: root/content/posts/2004-03-21-syndic8-ruby-0-1-0.html
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2021-10-14 12:47:50 -0400
committerPaul Duncan <pabs@pablotron.org>2021-10-14 12:47:50 -0400
commit4b6c0e31385f5f27a151088c0a2b614495c4e589 (patch)
tree12243cdcd00704bc1a9d94ac9cc128459417370c /content/posts/2004-03-21-syndic8-ruby-0-1-0.html
downloadpablotron.org-4b6c0e31385f5f27a151088c0a2b614495c4e589.tar.bz2
pablotron.org-4b6c0e31385f5f27a151088c0a2b614495c4e589.zip
initial commit, including theme
Diffstat (limited to 'content/posts/2004-03-21-syndic8-ruby-0-1-0.html')
-rw-r--r--content/posts/2004-03-21-syndic8-ruby-0-1-0.html47
1 files changed, 47 insertions, 0 deletions
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
+---
+
+<p>
+Here's a set of quick <a href='http://www.ruby-lang.org/'>Ruby</a>
+bindings for <a href='http://www.syndic8.com/'>Syndic8.com</a> (via
+<acronym title='eXtended Markup Language'>XML</acronym>-<acronym
+title='Remote Procedure Call'>RPC</acronym>). Using these bindings is dirt simple; here's some sample code:
+</p>
+
+<blockquote>
+<pre>
+require 'syndic8'
+search_str = 'cooking'
+
+begin
+ s = Syndic8.new
+ s.find(search_str).each { |feed| p feed }
+rescue
+ puts "Error: #$!"
+end
+</pre>
+</blockquote>
+
+<p>
+You can also run Syndic8-Ruby from the command-line. Here's an example:
+</p>
+
+<blockquote>
+<code>
+$ ruby ./syndic8.rb bread | head -4<br />
+"Andy's Spot (BlackCat)","http://blackcat.editthispage.com/xml/rss.xml"<br />
+"ANN.lu","http://www.ann.lu/ANN.rdf"<br />
+"bread, coffee, chocolate, yoga","http://home.earthlink.net/~frelkins/blogger_rss.xml"<br />
+"Breadcrumbs","http://ovocyte.tripod.com/crumbs/crumbs_rss.xml"<br />
+"Bring your best, I can take it","http://www.livejournal.com/users/wonderbreadjn/data/rss"<br />
+</code>
+</blockquote>
+
+<p>
+Syndic8-Ruby: <a
+href='/download/syndic8-ruby-0.1.0.tar.gz'>tarball</a>, <a
+href='/download/syndic8-ruby-0.1.0.tar.gz.asc'>signature</a>.
+</p>
+