bookmarks-file-gen
This Python script can be used to convert a JSON (*.json
) file into a NETSCAPE Bookmark (*.html
) file that can be imported into almost any major browser, such as Google Chrome, Chromium, Mozilla Firefox, etc.
The accepted JSON input format is more or less the same format used by the Google Chrome / Chromium bookmarks file. If you want to see an example of that file, you can find it at one of the following locations, based on the OS and browser you're using:
Operating System | Browser | Bookmarks file path |
---|---|---|
Debian 12 (Bookworm) | Chromium | ~/.config/chromium/Default/Bookmarks |
Debian 12 (Bookworm) | Google Chrome | ~/.config/google-chrome/Default/Bookmarks |
Windows 10 | Google Chrome | %USERPROFILE%\AppData\Local\Google\Chrome\User Data\Default\Bookmarks |
Or you can take a look at the input-*.json
files inside this directory.
Usage
Important: this has been tested with Python 3.9.1 on Windows 10.
Bash | |
---|---|
Or with Docker:
Bash | |
---|---|
If you want to run the script without downloading it:
Bash | |
---|---|
You can also run the script on the content of your Google Chrome / Chromium Bookmarks
file like this:
Bash | |
---|---|