{"id":13850608,"url":"https://github.com/jgarber623/delicious-data-convertor","last_synced_at":"2025-07-12T22:31:15.209Z","repository":{"id":23518529,"uuid":"26884734","full_name":"jgarber623/delicious-data-convertor","owner":"jgarber623","description":"A simple tool written in Ruby that converts exported Delicious bookmarks from HTML to JSON.","archived":true,"fork":false,"pushed_at":"2014-12-01T22:15:59.000Z","size":148,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-05T20:32:57.005Z","etag":null,"topics":["bookmarks","delicious-bookmarks","indieweb","json","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jgarber623.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-19T22:29:51.000Z","updated_at":"2023-01-28T18:17:38.000Z","dependencies_parsed_at":"2022-08-03T00:15:37.157Z","dependency_job_id":null,"html_url":"https://github.com/jgarber623/delicious-data-convertor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgarber623%2Fdelicious-data-convertor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgarber623%2Fdelicious-data-convertor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgarber623%2Fdelicious-data-convertor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jgarber623%2Fdelicious-data-convertor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jgarber623","download_url":"https://codeload.github.com/jgarber623/delicious-data-convertor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225839577,"owners_count":17532305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bookmarks","delicious-bookmarks","indieweb","json","ruby"],"created_at":"2024-08-04T20:01:20.227Z","updated_at":"2024-11-22T03:31:39.497Z","avatar_url":"https://github.com/jgarber623.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Delicious Data Convertor\n\nA simple Ruby-based tool for converting an exported `delicious.html` file from [Delicious](https://delicious.com/) into JSON.\n\n\n## Requirements\n\n- No aversion to the command line\n- Ruby (2.1.4)\n- Bundler (1.7.4 or newer)\n- A [Delicious](https://delicious.com/) account\n\n\n## Installation\n\n1. Install Ruby 2.1.4. If you're using Mac OS X, you can use tools like [chruby](https://github.com/postmodern/chruby), [rbenv](https://github.com/sstephenson/rbenv), or [RVM](https://rvm.io) to install multiple versions of Ruby, including the one required for this tool.\n2. Install Bundler (`gem install bundler`).\n3. Install gems (`bundle install`).\n\n\n## Usage\n\n1. Clone this repository and `cd` into the `delicious-data-convertor` directory.\n2. Visit the [\"Manage\" section](https://delicious.com/settings/manage) of your Delicious account and choose \"Export Bookmarks.\" Be sure to include tags and notes in the export (the default).\n3. Save the resulting `delicious.html` file to this project's `data` directory.\n4. Back over in Terminal, run `rake convert` from the root of the project.\n5. Marvel at the resulting `delicious.json` file in the `data` folder!\n\n\n## Caveats\n\nI slapped this together quickly in an hour or so. It's really only tested against an export of [my Delicious bookmarks](https://delicious.com/jgarber). It may or may not work for you.\n\n### HTML elements in titles and descriptions\n\nI encountered an issue with bookmarks that had strings like `\u003carticle\u003e`, `\u003curl\u003e`, 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 `\u003c` to `\u0026lt;` and `\u003e` to `\u0026gt;` in titles and descriptions.\n\nFor example, this:\n\n\tA sample description referencing an \u003chtml\u003e element.\n\nbecame this:\n\n\tA sample description referencing an \u0026lt;html\u0026gt; element.\n\nIt's not perfect, but it's the best I could figure out in a timely fashion.\n\n\n## License\n\nPer [CC0](http://creativecommons.org/publicdomain/zero/1.0/), to the extent possible under law, I have waived all copyright and related or neighboring rights to this work. Go forth and make things.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgarber623%2Fdelicious-data-convertor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjgarber623%2Fdelicious-data-convertor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjgarber623%2Fdelicious-data-convertor/lists"}