{"id":26947508,"url":"https://github.com/adibaba/deliciousexport","last_synced_at":"2026-04-25T08:38:25.601Z","repository":{"id":56940875,"uuid":"100882691","full_name":"adibaba/DeliciousExport","owner":"adibaba","description":"Parser for del.icio.us export files","archived":false,"fork":false,"pushed_at":"2017-08-27T15:28:27.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-03T19:41:18.889Z","etag":null,"topics":["archive","backup","backup-script","bookmark","delicious","delicious-bookmarks","export","json","php","social-bookmarking"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adibaba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-20T19:03:26.000Z","updated_at":"2024-04-25T00:24:07.000Z","dependencies_parsed_at":"2022-08-21T07:20:23.288Z","dependency_job_id":null,"html_url":"https://github.com/adibaba/DeliciousExport","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/adibaba/DeliciousExport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibaba%2FDeliciousExport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibaba%2FDeliciousExport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibaba%2FDeliciousExport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibaba%2FDeliciousExport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adibaba","download_url":"https://codeload.github.com/adibaba/DeliciousExport/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adibaba%2FDeliciousExport/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261561176,"owners_count":23177543,"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":["archive","backup","backup-script","bookmark","delicious","delicious-bookmarks","export","json","php","social-bookmarking"],"created_at":"2025-04-02T20:19:30.018Z","updated_at":"2026-04-25T08:38:25.560Z","avatar_url":"https://github.com/adibaba.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeliciousExport\n\nThe social bookmarking service Delicious ([del.icio.us](https://del.icio.us/)) was acquired by Pinboard (see [blog post](https://blog.pinboard.in/2017/06/pinboard_acquires_delicious/)) and is in read-only mode now.\nYou can export your delicious bookmarks and save them in a HTML file.\nThis script parses those files.\n\n## Features\n\n- Backup private bookmarks (or exclude them)\n- Create a structured HTML file\n- Generate JSON file with PHP\n- Split tags which were accidentally separated with whitespaces\n- Include or exclude bookmark notes/descriptions\n- Sort tags by size or name\n- Include bookmarks without tags\n- Specify the format of date/time\n- Adapt templates or extend PHP classes (no private methods)\n\n## Examples\n\n### Preparation\n\n- Install [PHP](http://php.net/manual/en/install.php).\n- Download the latest DeliciousExport release at [GitHub](https://github.com/adibaba/DeliciousExport/releases)  \n  Decompress the ZIP-file.\n- Download your bookmarks at [del.icio.us/export](https://del.icio.us/export).  \n  Copy the downloaded *delicious.html* into the folder *src*.\n- Create a file *run.php* with an example code below and store it in the folder *src*.  \n  Open the console (Windows: Press [Win] + [R], enter *cmd*).  \n  Navigate to the *src* directory and enter *php run.php*.\n\n### Create structured HTML bookmarks file\n\n    \u003c?php\n    require_once 'HtmlParser.php';\n    require_once 'Generator.php';\n\n    $parser = new Adibaba\\DeliciousExport\\HtmlParser('delicious.html');\n    $parser-\u003eparse();\n    \n    $generator = new Adibaba\\DeliciousExport\\Generator();\n    $generator-\u003esetHtmlParser($parser);\n    file_put_contents('bookmarks.html', $generator-\u003egenerate());\n    ?\u003e\n\n### Create JSON bookmarks file\n\n    \u003c?php\n    require_once 'HtmlParser.php';\n    $parser = new Adibaba\\DeliciousExport\\HtmlParser('delicious.html');\n    file_put_contents('bookmarks.json', json_encode($parser-\u003eparse()-\u003egetBookmarks()));\n    ?\u003e\n\n### Option for HTML parser: Split tags\n\nA tag 'php code' will become two tags 'php' and 'code'.\n\n    \u003c?php\n    require_once 'HtmlParser.php';\n    $parser = new Adibaba\\DeliciousExport\\HtmlParser('delicious.html');\n    $parser-\u003esetSplitTags(true);\n    file_put_contents('bookmarks.json', json_encode($parser-\u003eparse()-\u003egetBookmarks()));\n    ?\u003e\n\n### Options for HTML Generator\n\nThe following options are defaults.\n\n    \u003c?php\n    require_once 'HtmlParser.php';\n    require_once 'Generator.php';\n\n    $parser = new Adibaba\\DeliciousExport\\HtmlParser('delicious.html');\n    $parser-\u003eparse();\n    \n    $generator = new Adibaba\\DeliciousExport\\Generator();\n    $generator-\u003esetHtmlParser($parser)\n    \n    // Templates\n    -\u003esetTemplateMain('./templateMain.htm')\n    -\u003esetTemplateTag('\u003cli\u003e\u003ca href=\"#_TAG_\"\u003e_TAG_\u003cspan\u003e_TAG_SIZE_\u003c/span\u003e\u003c/a\u003e\u003c/li\u003e', false)\n    -\u003esetTemplateCollection('\u003ch1 id=\"_TAG_\"\u003e_TAG_\u003c/h1\u003e\u003cul\u003e_BOOKMARKS_\u003c/ul\u003e', false)\n    -\u003esetTemplateBookmark('./templateBookmark.htm')\n    -\u003esetTemplateBookmarkNote('\u003cpre\u003e_BOOKMARK_NOTE_\u003c/pre\u003e', false)\n    -\u003esetTemplateBookmarkTag('\u003cspan\u003e\u003ca href=\"#_BOOKMARK_TAG_\"\u003e_BOOKMARK_TAG_\u003c/a\u003e\u003c/span\u003e', false)\n    \n    // Default tag for bookmarks without specified tag\n    -\u003esetDefaultNoTags('No-Tags')\n    \n    // Specifies, if bookmark notes/descriptions are added\n    -\u003esetIncludeNotes(true)\n    \n    // Specifies, if only public bookmarks should be included\n    -\u003esetIncludePrivateBookmarks(true)\n    \n    // Specifies, if HTML entities should be encoded\n    -\u003esetEncodeHtml(true)\n    \n    // Sets representation for date/time\n    -\u003esetDateFormat('Y-m-d');\n    \n    file_put_contents('bookmarks.html', $generator-\u003egenerate());\n    ?\u003e\n\n### Work with PHP objects\n\n    \u003c?php\n    require_once 'HtmlParser.php';\n    $parser = new Adibaba\\DeliciousExport\\HtmlParser('delicious.html');\n    $parser-\u003eparse();\n    \n    // Bookmarks\n    print_r($parser-\u003egetBookmarks());\n    \n    // Tags, sorted by name\n    print_r($parser-\u003egetTags());\n    \n    // Tags, sorted by size\n    print_r($parser-\u003egetTags(true));\n    \n    // Bookmarks without tags\n    print_r($parser-\u003egetBookmarkIdsWithoutTags());\n    ?\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadibaba%2Fdeliciousexport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadibaba%2Fdeliciousexport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadibaba%2Fdeliciousexport/lists"}