Skip to main content

Bookmark Toolkit

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 btk, you can use pip:

pip install btk

Usage

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


Download files

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

Source Distribution

bookmark_tk-0.1.0.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bookmark_tk-0.1.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file bookmark_tk-0.1.0.tar.gz.

File metadata

  • Download URL: bookmark_tk-0.1.0.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.20

File hashes

Hashes for bookmark_tk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8407c5bf3cc971246561d905f411d65c1b097a639656dff4e54d0bfbd40d0eae
MD5 1e262e4329375032ca548aa4adf9dd69
BLAKE2b-256 905ec9d3bcec7b223f7b21b2c5a91452cb5b2b5cdaf904cc2c4b5a49255687da

See more details on using hashes here.

File details

Details for the file bookmark_tk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: bookmark_tk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.8.20

File hashes

Hashes for bookmark_tk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34e320844c2205c1d8741a9331b85497de927d728e7e011af54d4db0056ababb
MD5 bcca35eeb4b3dc8855b33dc3f36fa111
BLAKE2b-256 8c9b7fe71048fe8cc4eb388c8bdc743f51c8c9f393358a0882df7b78813ccddb

See more details on using hashes here.

Supported by

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