Bogrep downloads and caches your bookmarks in plaintext without images or videos. Use the Bogrep CLI to grep through your cached bookmarks in full-text search.
bash
bogrep "reed-solomon code"
``` bash
cargo install bogrep ```
``` bash git clone git@github.com:quambene/bogrep.git cd bogrep
cargo install --path . ```
``` bash
bogrep config --source "my/path/to/bookmarks_file.json"
bogrep import
bogrep fetch
bogrep
``` bash
bogrep --version
bogrep --help
bogrep config --help bogrep import --help bogrep fetch --help ```
The path of bookmarks may depend on your operating system.
Configure Firefox as source for bookmarks, where <my_profile>
is your Firefox profile:
``` bash
bogrep config --source ~/snap/firefox/common/.mozilla/firefox/
bogrep config --source ~/.mozilla/firefox/
Directory bookmarkbackups
contains multiple backups files, and bogrep
will
choose the most recent bookmarks file.
Configure Chrome as source for bookmarks:
bash
bogrep config --source ~/.config/google-chrome/Default/bookmarks
Specify which bookmark folders are imported. Multiple folders are separated by comma:
bash
bogrep config --source "my/path/to/bookmarks_file.json" --folders dev,science,articles
Ignore specific urls. The content for these urls will not be fetched and cached.
It can be useful to ignore urls for video or music platforms which usually don't include relevant text to grep.
``` bash
bogrep ignore
Ignored urls will be added to the file ~/.config/bogrep/.bogrepignore
, which
can be edited manually as well.
Fetch difference between cached and fetched website for multiple urls, and display changes:
bash
bogrep fetch --diff <url1> <url2> ...