Utils to load local chrome bookmarks.
Project description
my-chrome-bookmarks
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file my_chrome_bookmarks-1.0.1.tar.gz
.
File metadata
- Download URL: my_chrome_bookmarks-1.0.1.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9779b6a064379cce54146d47b91ef2ea977d3c03d1cc265d71fc70095e8c0d |
|
MD5 | 8686bcf844170923f754d122810dfd4a |
|
BLAKE2b-256 | aa88fd40d6c2f5b345561bfe5d082b3a67003e05a3af1ce2f61e60735f822947 |
File details
Details for the file my_chrome_bookmarks-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: my_chrome_bookmarks-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 491146d363983a2d2e8f3d8fab448b06c81e314410192a60bbbdf4560316a0cb |
|
MD5 | 446bf60894680992e57b9e2fcaf9a285 |
|
BLAKE2b-256 | 7e3c335a59dd1377e7d94d84d41169515005c85982939c7a17093641f034365b |