Delicious + Movable Type + Java

I’ve been keeping a list of interesting links in a text file for the last couple years and only recently thought better of it and started using del.icio.us to store links. And I wanted to show the links as part of this blog, but I wasn’t satisfied with just including their RSS feed of my links in blog (what happens when / if del.icio.us disappears?) so I whipped up a some code using the delicious-java library and the Apache XML-RPC library that extracts my delicious links from the previous day and then posts them directly my Movable Type blog using the XML-RPC API that comes standard with Movable Type. After putting it up on my server, I wrote a simple shell script that invokes the Java class and then popped that into /etc/cron.daily/ so that it will get called a nightly basis, voila!

#!/bin/bash
cd /usr/apps/delicious/
java -cp commons-codec-1.3.jar:commons-httpclient-3.0-rc2.jar:
commons-logging-1.0.4.jar:delicious-1.6.jar:xmlrpc-1.2-b1.jar:bin net.cephas.blog.DeliciousPoster config.properties

If you’d like to run it your own server, feel free to download the binaries (which include the source code), edit config.properties to match your Movable Type and de.licio.us profiles and scheduled it to run on a nightly basis.

One thought on “Delicious + Movable Type + Java”

  1. Glad the library worked out for you. There’s also a configuration setting in del.icio.us to have the service automatically post your del.icio.us bookmarks to your blog. So far I think this only works with MT blogs. You can get at the settings at http://del.icio.us/settings/(deliciousid)/daily

    I wrote my own plugin for blojsom to post my daily links since the daily post from del.icio.us itself never worked. And I wanted control over how the links were output.

    Take care.

Leave a Reply to David Czarnecki Cancel reply

Your email address will not be published. Required fields are marked *