A simple tool written in Ruby that converts exported Delicious bookmarks from HTML to JSON.
A simple Ruby-based tool for converting an exported delicious.html
file from Delicious into JSON.
gem install bundler
).bundle install
).cd
into the delicious-data-convertor
directory.delicious.html
file to this project’s data
directory.rake convert
from the root of the project.delicious.json
file in the data
folder!I slapped this together quickly in an hour or so. It’s really only tested against an export of my Delicious bookmarks. It may or may not work for you.
I encountered an issue with bookmarks that had strings like <article>
, <url>
, etc. in titles and descriptions. Basically, instances where there were HTML elements (or strings that look like HTML elements) caused Nokogiri to go haywire. I couldn’t find a bulletproof solution to this, so I manually changed <
to <
and >
to >
in titles and descriptions.
For example, this:
A sample description referencing an <html> element.
became this:
A sample description referencing an <html> element.
It’s not perfect, but it’s the best I could figure out in a timely fashion.
Per CC0, to the extent possible under law, I have waived all copyright and related or neighboring rights to this work. Go forth and make things.