Search code examples
google-chromebrowser-history

How to access Google Chrome browser history programmatically on local machine


I want to write a simple program which shows my internet activity over a period of time (which site I visited, how many times and so on). I mostly use Google Chrome browser. I found out Chrome stores browser history at this location (please correct me if I'm wrong)

C:\Documents and Settings\<username>\Local Settings\Application Data\Google\Chrome\User Data\Default

How can I open the history files? They don't have any file extension. I could not open using notepad, SQLite browser. How do I access this data programmatically? I want to know which file format it is and how to read it using a programming language like C#.


Solution

  • It is just a SQlite 3 database, I was able to open it successfully (though of course you can't open a locked database of a running browser).