Google Chrome的互联网历史记录脚本 [英] Internet History Script For Google Chrome

查看:151
本文介绍了Google Chrome的互联网历史记录脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是在寻找一个最好或最有效的脚本来做到这一点。但是我想知道是否存在一段脚本,可以让谷歌浏览器在一天内拉出互联网历史记录并将其记录到一个txt文件中。我宁愿如果它在Python或MATLAB。



如果您使用其中一种语言使用谷歌浏览器本地存储的浏览器历史记录数据,可以采用不同的方法,那么我也会全力以赴。



如果有人可以帮忙,我会非常感谢!

解决方案

从我的理解来看,似乎很容易做到。我不知道这是你想要的。
来自Chrome的互联网历史记录存储在特定路径中。以Win7为例,它存储在win7: C:\ Users \ [用户名] \AppData\Local\Google\Chrome\User Data\Default\History

$ b

在Python中:

  f = open ('C:\ Users \ [username] \AppData\Local\Google\Chrome\User Data\Default\History','rb')
data = f.read( )
f.close()
f = open('your_expected_file_path','w')
f.write(repr(data))
f.close()


I'm not looking for a "best" or most efficient script to do this. But I was wondering if there exists a script to pull Internet History for a day's time from, say, Google Chrome and log it to a txt file. I'd prefer if it were in Python or MATLAB.

If you guys have a different method using one of these languages utilizing locally stored browser history data from Google Chrome, I'd be all ears for that too.

I'd be super-thankful if anyone could help with this!

解决方案

From my understanding, it seems easy to be done. I don't know if this is what you want. Internet history from Chrome is stored at a specific path. Take Win7 for example, it's stored at win7: C:\Users\[username]\AppData\Local\Google\Chrome\User Data\Default\History

In Python:

f = open('C:\Users\[username]\AppData\Local\Google\Chrome\User Data\Default\History', 'rb')
data = f.read()
f.close()
f = open('your_expected_file_path', 'w')
f.write(repr(data))
f.close()

这篇关于Google Chrome的互联网历史记录脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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