Wednesday, April 15, 2009

Light-weight Content Management via del.icio.us

Being a fan of the semantic web, I have a fetish for data syndication between sites. Naturally, then, when I wanted to put some links on my blog, I thought I would manage it using del.icio.us, which would provide an archive of old links, and some snazzy front-ends in the form of browser addons and of course their website.

I use the tag codebad.com:sidebar to identify bookmarks I want to appear alongside my blog.

It's very easy to have your website pull the data from del.icio.us via RSS every few hours, and incorporate that as content on your website! You could in fact probably do some very interesting stuff this way, but just including some links is the most intuitive and appropriate. Here is some code to get you started:

This solution is extremely light-weight and convenient. The templating method I used only employs Python's built-in printf-style string formatting to get the job done, but you could use this technique with any templates.

Labels: , , , ,