Internet History Script For Google Chrome

后端 未结 5 1321
暖寄归人
暖寄归人 2021-02-06 15:48

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 Ch

5条回答
  •  星月不相逢
    2021-02-06 16:23

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

提交回复
热议问题