How to access Google Chrome browser history programmatically on local machine

Tejas picture Tejas · Apr 1, 2010 · Viewed 72k times · Source

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#.

Answer

wRAR picture wRAR · Apr 1, 2010

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).