This is an experimental script I am developing in order to analyze my browsing history.
Remember to copy the History.db file from ~/Library/Safari/History.db to your current folder
Extract and analyze your Safari browsing history with this simple python script
Python