my_chrome_bookmarks

Utils to load local chrome bookmarks.


Keywords
google, chrome, bookmarks
License
Apache-2.0
Install
pip install my_chrome_bookmarks==1.0.2

Documentation

my-chrome-bookmarks

PyPI version

Python module to read local Chrome bookmarks.

Installation:

pip install my-chrome-bookmarks

Usage:

import my_chrome_bookmarks

# Get the top-level folder.
# Equivalent to `my_chrome_bookmarks.bookmarks().bookmark_bar`
bookmarks = my_chrome_bookmarks.bookmark_bar()

# Note: `bookmarks.urls` and `bookmarks.folders` also exists
for bookmark in bookmarks:
    if bookmark.is_folder:  # Folder
        print(f'{bookmark.name} contain {bookmark.num_urls} urls')
    else:  # Url
        print(f'{bookmark.name}: {bookmark.url}')


bookmark = bookmarks['My folder']  # Access a specific bookmark or folder

See the source code for the full API.