This script takes an HTML file with the Netscape bookmarks format, converts it to JSON, and imports the bookmarks to the Linkding bookmark manager.
- Install Node.js on your computer if you don't already have it.
- Get the
importer.jsfile from the releases section. - Create a folder called
dataon the same directory where theimporter.jsis placed. - Inside that
datafolder, place the bookmarks HTML file, and rename it tobookmarks.html. - Inside that
datafolder, create a new file calledconfig.jsonwith the following structure:
{
"linkding": {
"url": "LINKDING_URL",
"token": "LINKDING_TOKEN"
},
"options": {
"exportParsedBookmarks": true,
"exportBookmarksPreLinkdingImport": true
}
}- Replace
LINKDING_URLwith the base URL you use to access Linkding. Example:https://linkding.mydomain.com. - Replace
LINKDING_API_TOKENwith Linkdin's API token. To get it login into the web application, go to Settings, go to Integrations, and at the bottom of that page you can find the API token. - Run the script with
node importer_x.x.x.js.