Skip to main content

Index and search bookmarks from the command line.

Project description

Index and search browser bookmarks from the command line.

Works with Chrome and Firefox.

Install

pip install marcus

(hint: use --user to install into ~/.local/bin/)

Then run marcus (or ~/.local/bin/marcus) with no arguments to get help.

Index your bookmarks

The first time you run this it will take a while, depending on how many bookmarks you have.

$ marcus --index ~/.config/chromium/Default/Bookmarks
Start 2017-01-12 21:20
Indexing 10 / 1081 bookmarks
Indexing https://www.mozilla.org/en-US/firefox/central/ (0 / 1081) 0% done
Indexing http://www.ubuntu.com/ (1 / 1081) 0% done
...

To find a list of bookmark files belonging to the current user:

$ marcus --find-bookmark-files

Firefox on Linux example:

$ marcus --index ~/.mozilla/firefox/*.default/places.sqlite

Automated indexing

Edit your user’s crontab with crontab -e and then add a line at the bottom like this:

17 * * * * $PATH-TO-BINARY/marcus --index ~/.config/chromium/Default/Bookmarks >> $HOME/.marcus.log 2>&1

Which will run the indexer every hour at 17 minutes past the hour. Pages which have already been indexed will not be indexed again.

Patches welcome. Enjoy!

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

marcus-0.6.tar.gz (5.8 kB view details)

Uploaded Source

File details

Details for the file marcus-0.6.tar.gz.

File metadata

  • Download URL: marcus-0.6.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for marcus-0.6.tar.gz
Algorithm Hash digest
SHA256 bc6c78079ec131304cccb0590f1fdcfd3e641b1574bc131d33b7640a5468c5f2
MD5 ddd3e2044bdaf55c4a92bf5342b26890
BLAKE2b-256 8c4ce088f6957e257e6af8751251bcf6b3d4a9a79184cac9e55e24cdc157bb71

See more details on using hashes here.

Supported by

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