Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Back up saved bookmarks from Delicous to CouchDB using Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Delicious Couch

A few Ruby scripts to backup Delicious bookmarks to CouchDB and provide some simple queries


  • a pre-Yahoo Delicious account as they use HTTP Basic Auth for authentication
  • CouchDB running on port 5984 on your local machine, I recommend the binary distributions from CouchOne
  • nokogiri and couchrest gems must be installed

    sudo gem install nokogiri couchrest

Clone the code from GitHub

git clone
cd delicious-couch

Run the import script to fetch your saved bookmarks

Substitute your username and password on the command line

USER=username PASS=password ./import.rb

Create the design document


Querying the documents

Now that the database had been populated and the views created, the contents can be queried

View all urls


View all tags along with their count


View all urls with a specific tag

./urls_by_tag.rb git

Views all bookmarks tagged with "git"

This set of scripts is only scraping the surface of what is possible with CouchDB but it demonstrates the immense power of MapReduce along with the basics interacting with CouchDB using Ruby. Enjoy!

2010 Steven Wilkin

Something went wrong with that request. Please try again.