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.js
file from the releases section. - Create a folder called
data
on the same directory where theimporter.js
is placed. - Inside that
data
folder, place the bookmarks HTML file, and rename it tobookmarks.html
. - Inside that
data
folder, create a new file calledconfig.json
with the following structure:
{
"linkding": {
"url": "LINKDING_URL",
"token": "LINKDING_TOKEN"
},
"options": {
"exportParsedBookmarks": true,
"exportBookmarksPreLinkdingImport": true
}
}
- Replace
LINKDING_URL
with the base URL you use to access Linkding. Example:https://linkding.mydomain.com
. - Replace
LINKDING_API_TOKEN
with 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
.