I wanted to write a Python script to analyse my browsing history and view the most visited sites.

I wrote a Python script to do this and used matplotlib to plot the visited sites as a graph.

Initially, I had to figure out a way to access the browser history from the Python script and this blog proved to be a great reference. After using the sqllite3 package to access the browser history, I used the urlparse package to get the website's name.

[Source on Github]

Sample output