Skip to main content

Search brave history from the command-line

Project description

brave-history

Search Brave browser history from the command-line.

Caveats

This program uses the History sqlite database provided by Chrome. This is not updated immediately. I was getting delays in the order of 8 seconds when I tested this out.

mozeidon seems to give virtually instant data but requires considerably more configuarion than this tool which just works.

Motivation

History is useful; GUIs are irritating; the command-line has a lot of features.

People often remeber information about the pages they have visiting on the internet and then want to refer to it for further work, quote it, or share it. This is one of the values of the history functionality in most browsers, but using the GUI interface that browser provides can be time consuming and fiddly. The command-line has a number of utilities (include custom one's generated by the user) for interacting with data. Additionally the command-line makes it possible to use data once found.

Alternatives and prior work

It should be noted that much of the tooling for Chrome can be adapted to Brave.

Brave exposes and sqlite database with history. You may prefer to access this directly for your use cases, particularly if you want to remove dependencies.

mozeidon is a command-line tool with a corresponding browser extension for Chrome which can fetch history, bookmarks and control tabs. I deemed the extension too heavy-weight for my purposes - it requires the installation of a browser extension, two command-line programs, and editing Chrome's configuration files. It does perform certain other functionality such as querying and interacting with tabs where there may be no alternative to using this approach.

References

  1. Browsing Chrome history and bookmarks with fzf

About me

I am @readwithai. I create tools for reading, research and agency sometimes using the markdown editor Obsidian.

I also create a stream of tools that are related to carrying out my work.

I write about lots of things - including tools like this - on X. My blog is more about reading and research and agency.

@readwithai logo

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

brave-history-1.1.0.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file brave-history-1.1.0.tar.gz.

File metadata

  • Download URL: brave-history-1.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for brave-history-1.1.0.tar.gz
Algorithm Hash digest
SHA256 432652bbae608c4b249b8719d8fb4998a67c4c3a7f9f349e7896d9fa7dfc8e4a
MD5 5f59217e597364a7c245851d9d09fb32
BLAKE2b-256 2038484f298aef34e60485776ab2704e49f44125fae557d2cfec5fa28623da29

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