Skip to content

westurner/pbm

Repository files navigation

pbm

https://badge.fury.io/py/pbm.png https://pypip.in/d/pbm/badge.png

pbm works with Chrome and Chromium bookmarks JSON.

Features

  • List Chrome and Chromium Bookmarks JSON files (-l / -L)
  • Print all bookmarks (--print-all)
  • Reorganize all bookmarks into the Bookmarks Bar (--organize)

Bookmarks Bar Folders

Name Description
yearly date-based folders: YYYY > YYYY-MM > YYYY-MM-DD
bookmarklets bookmarklets (additions will be merged with a default set)
chrome select chrome:// URLs
quicklinks custom quicklinks (optional; copied as-is)
starred bookmarks ending in one or more # are copied here searchably prefixed with [XO], [XOOOO]
queue default folder for new bookmarks

Installation

Install from PyPI with pip:

pip install pbm

Development:

pip install -e git+ssh://[email protected]/westurner/pbm#egg=pbm

Usage

List available Bookmarks files in Chrome and Chromium User Data directories:

pbm -l  # or -L to also list Bookmarks.%FT%T%z.bkp backups

Reorganize all bookmarks into Bookmarks Bar folders:

bmarks=$(pbm -l | grep "Profile 1" | head -n1)
pbm --organize "${bmarks}"

Serve and search bookmarks with the Tornado webapp:

pbmweb -H localhost -P 8080 -f "${bmarks}"

Then access the searchable bookmarks jstree at http://localhost:28881/bookmarks/chrome