Import the Delicious dump into Pinboard

In a previous article, I explained how to dump all your bookmarks from Delicious using a web scraper. As I’m switching to Pinboard, I still needed a way to import the exported bookmarks

Content structure

The exported bookmark file is a CSV file, but with a snippet of JSON for the bookmark tags:

"Lifehacker","","[{""tag"":""gtd""},{""tag"":""news""},{""tag"":""productivity""}]","tips and downloads for getting things done"


The Pinboard API is fully documented online. To import the CSV file into Pinboard, I wrote a little Python script to process line by line.

Each line is converted from the CSV/JSON structure to a URL encoded set of arguments. These arguments are then used in an HTTP call to create the bookmark at Pinboard.


Download a local copy of my script, update the variables at the beginning with the name of your dump file and put your Pinboard account token. You can find this token in the Pinboard Password settings.