如何在本地机器上以编程方式访问Google Chrome浏览器历史记录 [英] How to access Google Chrome browser history programmatically on local machine

查看:360
本文介绍了如何在本地机器上以编程方式访问Google Chrome浏览器历史记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个简单的程序,显示一段时间内我的互联网活动(我访问过哪个网站,多少次等等)。我主要使用Google Chrome浏览器。我发现Chrome将浏览器历史存储在此位置 - C:\ Documents and Settings \\ Local Settings \Application Data\Google\Chrome\User Data\Default(如果我错了,请纠正我的错误)。我如何打开历史文件?他们没有任何文件扩展名。我无法打开使用记事本,SQLite浏览器。如何以编程方式访问此数据?我想知道它是哪种文件格式,以及如何使用C#等编程语言来读取它。

这只是一个SQlite 3数据库,我能够成功打开它(当然,您无法打开正在运行的浏览器的锁定数据库)。


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 - C:\Documents and Settings\\Local Settings\Application Data\Google\Chrome\User Data\Default (please correct me if I'm wrong). 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#.

解决方案

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

这篇关于如何在本地机器上以编程方式访问Google Chrome浏览器历史记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆