Internet History Script For Google Chrome

后端 未结 5 1313
暖寄归人
暖寄归人 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:13

    This isn't exactly what you are looking for. However, by using this you can manipulate the database tables to your liking

    import os
    import sqlite3
    
    def Find_path():
        User_profile = os.environ.get("USERPROFILE")
        History_path = User_profile + r"\\AppData\Local\Google\Chrome\User Data\Default\History" #Usually this is where the chrome history file is located, change it if you need to.
        return History_path
    
    def Main():
        data_base = Find_path()            
        con = sqlite3.connect(data_base) #Connect to the database
        c = con.cursor()
        c.execute("SELECT name FROM sqlite_master WHERE type='table' ORDER BY name") #Change this to your prefered query
        print(c.fetchall())
    if __name__ == '__main__':
        Main()
    

提交回复
热议问题