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:
- deliciousparser.py is a fork of feedparser which makes delicious tag representation a bit easier to work with
- delicious_content.py is an example of how to fetch your recent delicious bookmark RSS feed over HTTP, feed them through a filter, and then through a template, which will generate HTML that can be included in your website
- sidebar_template.html is an example of an HTML template
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: content management, del.icio.us, rss, tagging, web development
