How to REALLY Import your Delicious Links into Tumblr

I’ve been using Del.icio.us, the fabulous Joshua Schachter creation, as my linkrolling tool for a few years now. Although it can be a powerful tool for organizing and browsing through interesting URLs, I find I only use it for two things: saving links and displaying said links in the sidebar of Mike Industries. For that reason, there are probably any number of bookmarking services which would amply serve my meager needs.

One service that’s caught my eye recently is the increasingly popular Tumblr. I have friends who run their main blogs off of it and others who just run one of their multiple blogs off of it. I still like hosting my own WordPress blog and would never outsource this to a hosted service, but at the same time, running all linkblogging activity through a service like Tumblr sounds appealing — especially considering I can then pull all of that activity into my main blog using something like WP-O-Matic.

The super nice thing about Tumblr is how simple the posting interface is. The “Share on Tumblr” bookmarklet the company provides does a pretty good job of automatically figuring out what type of content you’re posting and treating it accordingly. In other words, if you seed from a YouTube page, the link gets posted as type “video” and is displayed accordingly. These sorts of interface niceties reduce the amount of work required to save links and thus encourage more linking activity. Both good things. The woefully inadequate “Press This” bookmarklet from WordPress just doesn’t measure up.

So… a couple of days ago when I decided I wanted to migrate all of my Del.icio.us bookmarks over to Tumblr, I couldn’t for the life of me find an automated way to do it. Tumblr has an import feeds feature but it is misleadingly named. It doesn’t actually import existing feeds. It only adds your feed URL and then posts any new items you add afterwards. This does nothing to aid in the migration of existing content over to Tumblr.

Using a combination of the Tumblr API sample code and some code I stole from Greg Neustaetter, I created a PHP script which imports all of your existing Del.icio.us bookmarkets into Tumblr.

Warning: I am not a PHP genius so I know the code isn’t pretty… but it works. It imported all 312 of my Del.icio.us bookmarks in under a minute.

In case you’re interested, here’s how to do it (caveat — you might want to do this on a fresh Tumblr account, just to be sure):

  1. Log into your Del.icio.us account.
  2. Hit http://del.icio.us/api/posts/all and save the file to your desktop as “delicious.xml”. Upload this file to your server.
  3. Upload Delicious-To-Tumblr.php to the same location on your server and edit the two lines in the file specifying your Tumblr email and password (to authenticate with the Tumblr API).
  4. Hit Delicious-To-Tumblr.php in your web browser and all of your entries will be imported.

Voila! Del.icio.us-to-Tumblr migration in about a minute. Enjoy.

Like this entry? You probably shouldn't follow me on Twitter here. I recommend the RSS feed instead.

18 Responses:

  1. Bramus! says:

    Mike, thanks for the script! Alas, the downloadlink’s not working :(

  2. Joe Clark says:

    Yeah, but I want a Tumblr-to-Magnolia script. Can you heterosexually gin one of those up for me?

  3. Mike D. says:

    Bramus: Oops, thanks. I had a capitalization problem in my link. Fixed now!

    Joe: Hmmmm, shouldn’t be hard. I don’t use Magnolia a lot, but I assume they have an API. I’ll look into it when I find a sec.

  4. Mark says:

    Mike, I think the download link to the php script is still broken?

  5. Mike D. says:

    Mark: Really? Totally working for me. Tested in Safari and Firefox. What’s happening for you?

  6. Tigerblade says:

    It appears that the script only imports whatever the first tag on the bookmark is, and ignores the other tags. Any ideas on how to fix that?

  7. Mike D. says:

    Tigerblade: Interesting. It imported multiple tags for me. I wonder if maybe your tags are somehow set up differently than mine in Delicious. On the output screen when the script runs, do you see multiple tags or just one per entry?

  8. Mark says:

    Mike: Well I’ll be. Looks like maybe a “bug” in Firefox 3.1 Beta 2? I get Error 404 – Not Found. Guess “beta” means “beta”.

    I tried the link in both IE7 and Firefox 3.04 and it works just fine. Thanks!

  9. Tigerblade says:

    Mike: I see just one tag per entry on the output screen. Here’s the tag snippet from the XML…

    tag="list reference code web design to:tumble"

    So for this bookmark, only the tag “list” will be imported for some reason.

  10. Mike D. says:

    Tigerblade: Interesting. My delicious feed separates all my tags with commas. It looks like yours separates them with spaces. Will have to hack around that somehow.

  11. Tigerblade says:

    I should note that I briefly looked through the PHP… while it seems to loop through and fetch all the tags, the output page only prints the first one.


    $deliciouspost[tags][0] = trim($deliciouspost[tags][0],',');
    echo $deliciouspost[tags][0];

    But that shouldn’t matter because later on it takes the whole array and sends it to Tumblr, so… what am I missing?

    (in any case, thanks for this script! some of us are just too lazy to write it ourselves *ahem* me *ahem*)

  12. Mike D. says:

    Tigerblade: Funny, it turns out I’ve been entering tags “wrong” this whole time on Delicious. I would like to think comma delimiting used to be allowed and now it’s been ditched in favor of space delimiting, but I can’t say for sure. Anyway, I just modified the script so it handles both space and comma delimited tags automatically. I lightly tested it and it works. Try redownloading the script and let me know if it works for you now. Thanks.

  13. Emma says:

    didn’t understand any of that! ;o)

  14. j says:

    who came up with your color scheme? very well balanced.

  15. Ray says:

    Thanks for the post. I will try again when the script link is working.

  16. Mike D. says:

    Ray: What’s not working about it?

  17. Matt J says:

    not been having much luck with this.

    I saw in the php file the ‘Check for success’ bit – even if I put the wrong password in it doesn’t come up with the error message – any ideas?

  18. Mike D. says:

    Matt J: Hmmm, no idea. Unless Delicious or Tumblr changed something recently, it should work. That said, I wouldn’t be surprised if they did indeed change something.

Leave a Reply

Shared
How 3D works, and why it's back:

Great article on the ins and outs of three dimensional imagery. Still doesn’t change my opinion that well-shot conventional cinematography is more impressive than the novelty that is Avatar.

The Importance of Removing Features:

This is one of the most useful articles I’ve read in a long time. As we work on focusing, strengthening, and simplifying Newsvine, the concepts discussed by Lukas ring true. “Saying no” has never been a strong suit of mine. It’s very helpful to remember how important of a quality it is. (via fullstopinteractive)

Newly released video of the space shuttle Challenger disaster: It was 24 years ago, I was in 5th grade, but I remember it like it was yesterday. School was stopped immediately and they wheeled out televisions in every classroom for us to watch the news footage. It’s great that this video has been released, but holy crap, how do you tuck something that away for two decades???

A nicely done british parody of 60 Minutes style video journalism. It’s easy to miss how formulaic our news is sometimes. (via B-Tizzle, originally via E-Chizzle)

Colosseo: This is why Cameron is a king and we are all just pawns in his world. I can’t wait to get my hands on this poster. I will point out, however, that the outro credits on the video need some kerning. Someone is going to lose their right hand for that.

Spezify:

New ways of searching are almost never as useful as old ways of searching. Spezify is pretty awesome though. It’s a visually interesting, never-ending, horizontally and vertically scrollable, topic explorer. I don’t think I’d use it for digging deep on anything, but to get a quick visually rich sampling of a topic, it’s quite fun (via tiff, a long time ago actually, over email).

Realism in UI Design:

Reminds me of my favorite logo design advice: “Never waste a stroke”. (via gruber)

The best hockey team intro ever: Or as Tyler says “The Alaska Nanooks are my new favorite hockey team”.

jimray:

Rachel’s right, this is the best thing ever. At least, once you get the joke. Being the old fart that I am, I had no idea why this was funny until I spent about 30 seconds figuring out what a Team Jacob was and and then it was only a matter of time before, well… it would seem this poor girl confused Pat Robertson, douchebag supreme, with teen heartthrob and Twilight “star” Robert Pattinson.

Interesting. I just assumed “switching to Team Jacob” meant converting to judaism.

AWP Express:

I have no idea if these guys are any good or not, but this is the best example of a design agency site I’ve seen in a long time. It’s clean, extremely readable, very well-written, friendly, free of fluff and hyperbole, and contains clear calls to action. If you own your own agency and are trying to drum up work, you could learn a lot from how these guys present themselves. (via CSS Beauty)

Avatar: The Making of the Bootleg Makes me want to skip the whole 3D thing and support the Canal Street cinematographer’s guild.

Why Are Europeans White?:

According to Frank W. Sweet, it all goes back to cereal.

How to use CSS @font-face:

Very thorough writeup. It’s almost time to walk sIFR peacefully into the sunset. (via oxygensatchel)

A great HDR Tutorial from Wolfgang Bartleme (aka “The Austrian Wolf”). One of these days, I’m going to start shooting this way… probably after it’s an automatic function of the camera though.

Where Should I Eat? Fast Food Edition: A nice flowchart. Good to see Jack-In-The-Box getting some props. Pretty tough on Arby’s though!

Overshared
Aziz Ansari = Indian Mitch Hedberg on uppers
Arlo from this season of 24 looks a lot like Darren, Kramer's intern at Kramerica Industries.
Apparently it is impossible to get a serious answer to a question if the question includes the word "beaver". Lots of good stuff though!
Anybody know the best way to kill a mountain beaver?
Watching Undercover Boss. Very ironic that Waste Management's female drivers are apparently forced to urinate in cans.
@jlbruno Bud is a completely undifferentiated product. That's why they brand-advertise. Google has unique products to teach people about.
ESPN.com does not wear Trade Gothic well.
A lose/lose for Indy fans. Lost the game and didn't even get to play for perfection. You all should be livid with ownership.
@jw @andrewlin Maybe. Didn't seem like too transformational of an ad to me though. The coolness of auto-suggest was probably lost on many.
Does Google really need to convince people to use Google for searching? A Chrome ad would have been 100x more useful.
@zeldman By the way, make sure to catch Million Dollar Listing, also on Bravo. Just as entertaining, but for different reasons.
@zeldman It really is. There's something very entertaining about financially accomplished, socially awkward people.
@H_FJ Nah. Long ago he said amphibious, meaning ambidextrous. It stuck, so he kept saying it. "Layup with the left hand! He's amphibious!"
Marques Johnson just said "amphibious". Damn, I miss the Sonics now.
Wow, D.C. could get 30 inches of snow this weekend? The *real* Washington is jealous.