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.2.tar.gz
.
File metadata
- Download URL: my_chrome_bookmarks-1.0.2.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 | b09a0a08365b87e8084ded4270dd89ce49889d3056f7085c254cc6b93fc468bb |
|
MD5 | 7d45984fbe13328fac143a6cf426fce1 |
|
BLAKE2b-256 | f29fbee136f3391eb5fcb654bab54a60153813b4c4a448fb7e8cb019dab36e49 |
File details
Details for the file my_chrome_bookmarks-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: my_chrome_bookmarks-1.0.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1fdc580a65882f70a2f30d7b4afcefe976b7ced92634ffaa9400b4f40f22dca |
|
MD5 | 9b8e5b76a5e828abdadc03678d307ab3 |
|
BLAKE2b-256 | f708d3b1eaff10b2625e8d76740a04f6011e8bdbd2a230bd9eac13835f81da79 |