Bookmark Toolkit. Helps manage, analyze, and visualize bookmarks
Project description
Bookmark Toolkit (btk)
Bookmark Toolkit (btk) is a command-line tool for managing and analyzing bookmarks. It provides features for importing, searching, editing, and exporting bookmarks, as well as querying them using JMESPath.
Installation
To install bookmark-tk, you can use pip:
pip install bookmark-tk
Usage
It installs a command-line took, btk. To see how to use it, type:
btk --help
Commands
-
import: Import bookmarks from various formats, e.g., Netscape Bookmark Format HTML file.
btk import oldbookmarks --format netscape --output bookmarks
-
search: Search bookmarks by query.
btk search mybookmarks "statistics"
-
list-index: List the bookmarks with the given indices.
btk list-index mybookmarks 1 2 3
-
add: Add a new bookmark.
btk add mybookmarks --title "My Bookmark" --url "https://example.com"
-
edit: Edit a bookmark by its ID.
btk edit mybookmarks 1 --title "Updated Title"
-
remove: Remove a bookmark by its ID.
btk remove mybookmarks 2
-
list: List all bookmarks (including metadata).
btk list mybookmarks
-
visit: Visit a bookmark by its ID.
btk visit mybookmarks 103
-
merge: Perform merge (set) operations on bookmark libraries.
btk merge union lib1 lib2 lib3 --output merged
-
cloud: Generate a URL mention graph from bookmarks.
btk cloud mybookmarks --output graph.png
-
reachable: Check and mark bookmarks as reachable or not.
btk reachable mybookmarks
-
purge: Remove bookmarks marked as not reachable.
btk purge mybookmarks --output purged
-
export: Export bookmarks to a different format.
btk export mybookmarks --output bookmarks.csv
-
jmespath: Query bookmarks using JMESPath.
btk jmespath mybookmarks "[?visit_count > \`0\`].title"
Example JMESPath Queries
- Get all starred bookmarks:
btk jmespath mybookmarks "[?stars == \`true\`].title"
- Get URLs of frequently visited bookmarks:
btk jmespath mybookmarks "[?visit_count > \`5\`].url"
- Get bookmarks that contain 'wikipedia' in the URL:
btk jmespath mybookmarks "[?contains(url, 'wikipedia')].{title: title, url: url}"
License
This project is licensed under the MIT License.
Contributing
Contributions are welcome! Please submit a pull request or open an issue if you have suggestions or improvements.
Author
Developed by Alex Towell.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bookmark_tk-0.2.0.tar.gz.
File metadata
- Download URL: bookmark_tk-0.2.0.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78d1ddb3536ce7d399604c9ced5f5fb467a0fccd073084e7d5742f7e5b0b75d8
|
|
| MD5 |
8281b584e0c0d2b75798aa5ea3243ac9
|
|
| BLAKE2b-256 |
07fd9f97afe02259ba4cfc945fd733b82e202399c323f3516600cd6510a719ba
|
File details
Details for the file bookmark_tk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: bookmark_tk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5efe7c29461f41686d5465df3cd364719dce84f1bc310213881b4e71a7ccf311
|
|
| MD5 |
355f07ae22efc6f757c6e88b2c27f5bb
|
|
| BLAKE2b-256 |
7a8ff169cb1e5f79ff5daf8a10cc736e7cffc42da7ce71f6db35fe1830ab757d
|