Ask HN: How can I analyze my own browsing behavior with only local tools?
How can I analyze and make statistics of my own web browsing behavior using only local software, and without giving out my personal browsing history to any 3rd party?
Here's the basic outline:
* Bash script that uses lsappinfo front to figure out what has focus * log the time, the app name, and other useful data
* If the current app is a browser, then branch on the browser type and "return URL of" the front tab or current document depending on the browser
* Echo whatever you want to capture to STDOUT
Then write up a startup .plist file to install and log the output.
The main drawback of such tools is that most ot them seem to require X11 and won't work with wayland.
Similar tools: https://github.com/ActivityWatch https://flowdash.co