Skip to content

A library for gathering history entries of major browsers

License

Notifications You must be signed in to change notification settings

semashkinvg/BrowserHistoryGatherer

 
 

Repository files navigation

BrowserHistoryGatherer - Browser history retrieval library

BrowserHistoryGatherer is a library that gathers history entries of major browsers.:

  • Chrome
  • Firefox
  • Internet Explorer
  • Safari

Usage

Get history of all browsers without time limitation:

BrowserHistory.GetHistory(Browser.All);

Get today's browser history of Firefox:

BrowserHistory.GetHistory(Browser.Firefox, DateTime.Today);

Get history of all browsers for the last 10 minutes:

BrowserHistory.GetHistory(Browser.All, DateTime.AddMinutes(-10));

Get browser history of Google Chrome and Firefox for a certain time span:

BrowserHistory.GetHistory(Browser.Chrome | Browser.Firefox, DateTime.Parse("4/2/2018"), DateTime.Parse("4/4/2018"));

Print all visited entries by all browsers in the console:

var history = BrowserHistory.GetHistory(Browser.All, DateTime.Parse("4/2/2018"), DateTime.Parse("4/4/2018"));
foreach (var entry in history)
{
    Console.WriteLine(entry.Uri);
    Console.WriteLine(entry.Title);
    Console.WriteLine(entry.LastVisitTime);
    Console.WriteLine(entry.FriendlyVisitCount);
}

Installation

Required NuGet packages:

  • plist-cil
  • System.Data.SQLite.Core

About

A library for gathering history entries of major browsers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%