Google Chrome的互联网历史记录脚本 [英] Internet History Script For Google Chrome
问题描述
我不是在寻找一个最好或最有效的脚本来做到这一点。但是我想知道是否存在一段脚本,可以让谷歌浏览器在一天内拉出互联网历史记录并将其记录到一个txt文件中。我宁愿如果它在Python或MATLAB。
如果您使用其中一种语言使用谷歌浏览器本地存储的浏览器历史记录数据,可以采用不同的方法,那么我也会全力以赴。
如果有人可以帮忙,我会非常感谢!
从我的理解来看,似乎很容易做到。我不知道这是你想要的。 在Python中: 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: In Python:
这篇关于Google Chrome的互联网历史记录脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
来自Chrome的互联网历史记录存储在特定路径中。以Win7为例,它存储在win7: C:\ Users \ [用户名] \AppData\Local\Google\Chrome\User Data\Default\History
$ b
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()
C:\Users\[username]\AppData\Local\Google\Chrome\User Data\Default\History
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()