Moving from de.lirio.us to del.icio.us

Mar 23rd, 2006No Comments

One of my worries of moving from de.lirio.us to del.icio.us is that I wanted move my bookmarks to del.icio.us. I thought it would be impossible, but after I remembered how to use del.icio.us API and that you can fetch any of your de.lirio.us’s pages with “page=num&format=rss”, then it was easy.

Hence comes der2del.py, a badly-name Python script that reads the RSS pages from de.lirio.us and posts them to del.icio.us. I tried to put the posted time in, but del.icio.us seems to ignore it. There is no also no way to get a tag from de.lirio.us’s RSS feed, but the bookmarks are now in del.icio.us now. That’s the main thing.

der2del.py uses a customized version of my RestConnect library. I need to put in authenication, and I was posting things, not fetching them, so the return code was much different. I also ended up going with ElementTree as the XML parser, since it’s faster and I was doing a lot of XML parsing (parsing the RSS feeds, parsing the response, etc.) The script doesn’t read the response code correctly — it thinks that something went wrong with every post. But the post is there.

Yes, the script is messy, but it’s better than nothing.

On another note, my PC decided that it didn’t want to reboot this morning. I think it’s a long-ago upgrade that finally went awry. It may just be easier to redo my Linux install than fix the issue, baring any data loss. This has nothing to do with moving to del.icio.us — I just thought I’d share my grief.

Leave a Reply

You must be logged in to post a comment.