Programmatically acess Google chrome history

后端 未结 3 1127
情深已故
情深已故 2021-01-02 18:21

I want to index all the user actions and websites in google chrome. i understand that google chrome index all the data in sqlLite database. how can i Programmatically access

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-02 18:39

    Used below code getting "Windows/x86_64" as a result

       try 
       {
            Class.forName ("org.sqlite.JDBC");
            connection = DriverManager.getConnection ("jdbc:sqlite:/C:/Users/tarun.kakkar/AppData/Local/Google/Chrome/User Data/Default/History");
    
            statement = connection.createStatement ();
            resultSet = statement.executeQuery ("SELECT * FROM urls");
    
            while (resultSet.next ()) 
            {
                System.out.println ("URL [" + resultSet.getString ("url") + "]" + ", visit count [" + resultSet.getString ("visit_count") + "]");
            }
        } 
    
        catch (Exception e) 
        {
            e.printStackTrace ();
        } 
    

提交回复
热议问题