Importing Bookmarks into del.icio.us
Friday, December 23rd, 2005I’ve been using delicious more (sorry for the spelling — too much of a pain to chop it up into a domain name), and I’ve been frustrated by its inability to import bookmarks, so I thought I’d write a little script to import bookmarks. Aside: other social bookmarking sites allow import and it’s not much effort: why haven’t the deli folks stepped up?
You can find my script here — any feedback welcome! Make sure you have the pyxml package installed, rename it to .py (my stupid isp blocks .py), and read the usage line. I might gui-ify it next ….
I wrote this script because I wanted the functionality and I thought it would be fun to learn a little about using python for a web-based api and xml parsing, etc. But I have to say the delicious api needs some work. It feels like a bit of a quick hack on the side of delicious; not yet ready for primetime. Some complaints:
1) I know they’re worried about their servers (and should be with the outage last week), but the 1 second delay? That’s a huge amount of time. Meanwhile, I found that I could hit their servers fast and never get a 503. What I do get though (whether I put in the 1s delays or not) is that occasionally the server just doesn’t respond for 30 to 40 seconds. I sniffed with ethereal, but I need to do some more snooping to figure out quite what’s going on here.
2) Not all functionality is there: why can’t I delete a tag for example? I can do it via the website but not the api.
3) Inconsistent interface: for example, compare the response to tags/rename?:
<result>done</result>
with the response to: posts/add?
<result code="done" />
In an api with a grand total of 12 methods, it’s a little silly to have inconsistencies like this.
Anyway, I’m sure the delicious team is slammed and a victim of their own success at this point. I really do like the site and where they’re going. Hopefully, the infusion of yahoo $ will let them keep the site up and solid and turn this api into something beta quality.