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
Full-text bookmark search
$ marcus privacy found 84 1. Privacy and control need to be put back into the hands of the individual – Decentralize Today https://decentralize.today/privacy-and-control-need-to-be-put-back-into-the-hands-of-the-individual-301c4c318ef8#.9uk0e4ysu Added: 2016-09-05 > ...a worldwide problem. **Privacy** and control need...which will bring... > ...**privacy**, money and communication...be blended into one **privacy**... > ...ecosystem. The pinnacle... 2. How ‘strong anonymity’ will finally fix the privacy problem http://venturebeat.com/2016/10/08/how-strong-anonymity-will-finally-fix-the-privacy-problem/ Added: 2016-10-09 > ...You have zero **privacy** anyway. Get over...to protect their **privacy** in... > ...an online world... 3. Germany planning to ′massively′ limit privacy rights | Germany | DW.COM | 25.11.2016 http://m.dw.com/en/germany-planning-to-massively-limit-privacy-rights/a-36529692 Added: 2016-12-02 > ...major limitation of **privacy** rights in Germany...massive" erosion of... > ...**privacy** in Germany. De Maiziere...authorities, say **privacy** groups "The... > ...limitation... ...
You can also use more complex queries like privacy AND github.com for example.
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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc6c78079ec131304cccb0590f1fdcfd3e641b1574bc131d33b7640a5468c5f2 |
|
MD5 | ddd3e2044bdaf55c4a92bf5342b26890 |
|
BLAKE2b-256 | 8c4ce088f6957e257e6af8751251bcf6b3d4a9a79184cac9e55e24cdc157bb71 |