Skip to main content

bkmks - unified browser bookmark exporter

Extendable browser bookmark exporter CLI tool. Export your browser bookmark tree into a simple and unified JSON. Optionally add a whitelist to only export whitelisted bookmarks or folders.

Output example:

{
    "created": "2024-09-23T13:31:10.312132",
    "bookmarks": 
    {
        "name": "Bookmarks",
        "children": [
            {
                "name": "Root level bookmark",
                "url": "https://bookmark.com"
            },
            {
                "name": "Root level folder",
                "children": [
                    {
                        "name": "1. level deep bookmark",
                        "url": "https://bookmark.com"
                    },
                    
                ]
            }
        ]
    }
}

Installation

Via pip:

pip install bkmks

Usage

There are two ways to use the tool:

Prompts

bkmks

When running bkmks in the console after installation with no additional arguments the program will go through interactive prompts to determine how you want to use it. An example prompt conversation could look like the following:

? Select the browser you want to extract bookmarks from: brave
? Would you like to only extract whitelisted bookmarks? Yes
? Enter the path to your bookmark whitelist: /Users/nico/dev/git/bmarks-scraper/.bkmks
? Would you like to write the output to a file (will otherwise be printed to console)? Yes
? Enter the output file path: bookmarks.json

CLI Flags

bkmks --help

If you would like to skip the step by step approach and directly communicate your inputs to the program you can utilize CLI flags. All available flags can be accessed by passing the -h or --help flag when running the program. This is the output of --help:

Extract your browser bookmarks into a normalized JSON

options:
  -h, --help            show this help message and exit
  -w WHITELIST, --whitelist WHITELIST
                        Path to your bookmark whitelist (aka your ".bkmks" file)
  -b {brave,other}, --browser {brave,other}
                        The browser you want to extract bookmarks from
  -o OUTPUT, --output OUTPUT
                        Output file path

Note: --help output above generated on 23.09.2024 your results may differ slightly

Development

Prequisites

Setting up

Clone the repository

git clone https://github.com/nico-i/bkmks

Set up a virtual environment, enter venv and install dependencies

make venv
make env
make install

Contributing

PRs for the support of other browser are very much welcome! Check out the bookmark adapters directory to see which browsers are currently supported.

Metadata

Release files for bkmarks 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bkmarks 2.1.0
File Size Uploaded Provenance Actions
bkmarks-2.1.0.tar.gz 3.8 kB Without provenance Details for bkmarks-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bkmarks 2.1.0
File Interpreter ABI Platform Actions
bkmarks-2.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for bkmarks-2.1.0-py2.py3-none-any.whl

Total release size: 7.2 kB

Release files / bkmarks-2.1.0.tar.gz

Download URL bkmarks-2.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
c95280b470cb3b4f17b75a98bfe01609c53f9aecc01ee400b22c29550d2f634f
BLAKE2b-256 checksum
How to use checksums
493a4dbdd45aee8095b62aa19ed2cf6bd166fd2b83d79a42b019fb2d56067a25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Release files / bkmarks-2.1.0-py2.py3-none-any.whl

Download URL bkmarks-2.1.0-py2.py3-none-any.whl
Size 3.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
e6152acf742288151871648e56d7c8969655765dda75e0991b95bf7ef174eafa
BLAKE2b-256 checksum
How to use checksums
8b79018fd7ac41a2cb563f91a6af2c7d921d74265d3b90d93f5b3ae899e3afab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for bkmarks 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page