Archive for September, 2004

del.icio.us experiments

September 9th, 2004  |  Published in web

Maybe you’re a python programmer. Maybe you think del.icio.us is kinda cool. Maybe you’d like to be able to do this:

>>> print len(delicious.Href("http://www.vim.org/").posts())
8

or:

>>> for post in delicious.users.mattb(delicious.tags.hackney):
...   print post.description,post.href
 
Phil Gyford selling his flat http://www.gyford.com/strandbuilding/
POGO http://www.pogocafe.co.uk/
hackneycentral http://www.hackneycentral.org/
Armadillo http://www.armadillorestaurant.co.uk/

or perhaps do something much, much cooler. delicious.py is for you.

UPDATE: Since I published this code, Joshua Schachter has made the rules around use of del.icio.us APIs clearer. So that you can stay within these limits, you should be aware that no call to a method in delicious.py will cause more than one HTTP request to del.icio.us. This means that it’s left up to you to time your requests appropriately and politely, but at least you know that the code won’t spam del.icio.us of its own accord.

Read the rest of this entry »