You are viewing a read-only archive of the Blogs.Harvard network. Learn more.
Skip to content

A quick survey of del.icio.us APIs for Ruby

I had this task where I wanted to pull information from del.icio.us for some data processing so I decided to take a look at what was available for Ruby. Before, I say what path I took let’s go over the choices I dug up.

Ridiculous

First up was Ridiculous which labels it as a simple wrapper for the del.icio.us API. After looking at the API I definitely agree it is quite simple to use. So here are the highlights.

The good

  • BSD Licensed
  • API really is simple
  • Has a rubygem (Any serious ruby tool should be available via rubygems)

The bad

  • Seems to require logging into delicious
  • Only seems to manage a delicious user’s bookmarks

Mirrored

Next was mirrored which looks like it is modeled on Active Record.

The Good

  • Acts like an Active Record Model (nice for Rails guys)
  • Supports both del.icio.us and ma.gnolia.com
  • Has a rubygem
  • MIT-ish licensed

The Bad

  • A little more complex than ridiculous (counting # of classes)
  • Only handles a logged in user scenario
  • Requires logging in

ruby-Delicious

Next up was this blog post that pointed to ruby-Delicious. However, when I clicked on the link I got a Forbidden. I love abandon-ware. I decided not to look much farther since the author obviously wanted to talk about something he didn’t think about maintaining.

What I wanted

What I wanted was something a little more full-featured like Python’s pydelicious library. It handled both cases of being logged in and wanting to update bookmarks AND just the lazy joe who wanted to yank data from delicious without having to stuff it into a data structure by hand.

In the end I ended up using none of the above since none of them did what I really wanted and after a little of Googling saw many snippets [1], [2], [3] that showed how one could do it with just open-uri. In the end I decided to just use open-uri since it ended up being a big fat 3 lines of code to implement the base case of what I wanted with open-uri. With a few more lines I had exception handling and retrying on failure.

However, hopefully someone else will be able to make use of the above libraries since they do like quite useful for programatically accessing delicious.

[1] Use delicious API via HTTPS from Ruby
[2] Ruby delicious snippet
[3] Ruby, delicious and graphviz

Be Sociable, Share!

{ 1 } Trackback

  1. […] Al Hoang ยป A quick survey of del.icio.us APIs for Ruby […]