A Python script to grab some tasty data from your Chrome's history and analyze it.
python3 -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install matplotlibClose Chrome first — it locks the history database while running.
python3 HistoryAnalyzer.pyThe script copies your Chrome profile's History database to a temp folder, tallies visits per domain, and sorts them from most to least visited. You'll then be prompted to choose one of:
| Command | Description |
|---|---|
c |
Print the list to the console. |
p |
Show a horizontal bar chart of the list. |
s |
Save the full sorted list to history_by_site.csv in the current directory. |
- No data leaves your machine.
- Chrome retains roughly 90 days of history (or ~10,000 entries).
- Only reads the current user's own Chrome profile.
- Works cross-platform: Windows, macOS, and Linux, using each OS's default Chrome profile location.
