Skip to main content

Utils to load local chrome bookmarks.

Project description

my-chrome-bookmarks

PyPI version

Python extension 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

my_chrome_bookmarks-1.0.2.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

my_chrome_bookmarks-1.0.2-py3-none-any.whl (8.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page