{"id":536,"date":"2009-01-22T22:07:00","date_gmt":"2009-01-23T06:07:00","guid":{"rendered":"https:\/\/mikeindustries.com\/blog\/?p=536"},"modified":"2016-05-25T23:34:27","modified_gmt":"2016-05-26T06:34:27","slug":"how-to-really-import-your-delicious-links-into-tumblr","status":"publish","type":"post","link":"https:\/\/mikeindustries.com\/blog\/archive\/2009\/01\/how-to-really-import-your-delicious-links-into-tumblr","title":{"rendered":"How to REALLY Import your Delicious Links into Tumblr"},"content":{"rendered":"<p>I&#8217;ve been using <a href=\"http:\/\/del.icio.us\" target=\"_blank\">Del.icio.us<\/a>, the fabulous <a href=\"http:\/\/joshua.schachter.org\/\" target=\"_blank\">Joshua Schachter<\/a> 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.<\/p>\n<p>One service that&#8217;s caught my eye recently is the increasingly popular <a href=\"http:\/\/tumblr.com\" target=\"_blank\">Tumblr<\/a>.  I have friends who run their <a href=\"http:\/\/jimray.tumblr.com\" target=\"_blank\">main blogs<\/a> off of it and others who just run <a href=\"http:\/\/bullshit.tumblr.com\" target=\"_blank\">one of their multiple blogs<\/a> 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 &#8212; especially considering I can then pull all of that activity into my main blog using something like <a href=\"http:\/\/devthought.com\/wp-o-matic-the-wordpress-rss-agreggator\/\" target=\"_blank\">WP-O-Matic<\/a>.<\/p>\n<p>The super nice thing about Tumblr is how simple the posting interface is. The &#8220;Share on Tumblr&#8221; bookmarklet the company provides does a pretty good job of automatically figuring out what type of content you&#8217;re posting and treating it accordingly.  In other words, if you seed from a YouTube page, the link gets posted as type &#8220;video&#8221; 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 &#8220;Press This&#8221; bookmarklet from WordPress just doesn&#8217;t measure up.<\/p>\n<p>So&#8230; a couple of days ago when I decided I wanted to migrate all of my Del.icio.us bookmarks over to Tumblr, I couldn&#8217;t for the life of me find an automated way to do it. Tumblr has an <a href=\"http:\/\/blog.davidville.com\/2007\/03\/01\/import-feeds\/\" target=\"_blank\">import feeds feature<\/a> but it is misleadingly named.  It doesn&#8217;t actually import existing feeds.  It only adds your feed URL and then posts any <em>new<\/em> items you add afterwards.  This does nothing to aid in the migration of existing content over to Tumblr.<\/p>\n<p>Using a combination of the <a href=\"http:\/\/www.tumblr.com\/api#api_write\" target=\"_blank\">Tumblr API sample code<\/a> and some <a href=\"http:\/\/www.gregphoto.net\/index.php\/2006\/01\/07\/backing-up-delicious-with-php-mysql-simplexml-and-ajax-for-live-search\/\" target=\"_blank\">code I stole from Greg Neustaetter<\/a>, I created a PHP script which imports all of your existing Del.icio.us bookmarkets into Tumblr.<\/p>\n<p>Warning: I am not a PHP genius so I know the code isn&#8217;t pretty&#8230; but it works.  It imported all 312 of my Del.icio.us bookmarks in under a minute.<\/p>\n<p>In case you&#8217;re interested, here&#8217;s how to do it (caveat &#8212; you might want to do this on a fresh Tumblr account, just to be sure):<\/p>\n<ol>\n<li>Log into your Del.icio.us account.<\/li>\n<li>Hit <a href=\"http:\/\/del.icio.us\/api\/posts\/all\" target=\"_blank\">http:\/\/del.icio.us\/api\/posts\/all<\/a> and save the file to your desktop as &#8220;delicious.xml&#8221;. Upload this file to your server.<\/li>\n<li>Upload <a href=\"https:\/\/mikeindustries.com\/blog\/files\/Delicious-To-Tumblr.php.zip\">Delicious-To-Tumblr.php<\/a> 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).<\/li>\n<li>Hit Delicious-To-Tumblr.php in your web browser and all of your entries will be imported.<\/li>\n<\/ol>\n<p>Voila!  Del.icio.us-to-Tumblr migration in about a minute.  Enjoy.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;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 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37,282,39],"tags":[],"class_list":["post-536","post","type-post","status-publish","format-standard","hentry","category-code","category-original","category-technology"],"_links":{"self":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/posts\/536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/comments?post=536"}],"version-history":[{"count":0,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/posts\/536\/revisions"}],"wp:attachment":[{"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/media?parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/categories?post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikeindustries.com\/blog\/wp-json\/wp\/v2\/tags?post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}