BookmarksManager.Chrome
2.0.0
Library for handling Chrome bookmarks. Supports reading from Chrome bookmarks file and JSON from Chrome API
Install-Package BookmarksManager.Chrome -Version 2.0.0
dotnet add package BookmarksManager.Chrome --version 2.0.0
<PackageReference Include="BookmarksManager.Chrome" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BookmarksManager.Chrome --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
var bookmarksFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Google\\Chrome\\User Data\\Default\\Bookmarks");
using (var file = File.OpenRead(bookmarksFilePath))
{
var container = _reader.Read(file);
foreach (var b in container.AllLinks.Where(l=>l.LastVisit < DateTime.Today))
{
Console.WriteLine("Type {0}, Title: {1}", b.GetType().Name, b.Title);
}
}
var bookmarksFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "Google\\Chrome\\User Data\\Default\\Bookmarks");
using (var file = File.OpenRead(bookmarksFilePath))
{
var container = _reader.Read(file);
foreach (var b in container.AllLinks.Where(l=>l.LastVisit < DateTime.Today))
{
Console.WriteLine("Type {0}, Title: {1}", b.GetType().Name, b.Title);
}
}
Release Notes
Ported to netstandard1.6;
Fixed timestamp parsing;
Dependencies
-
.NETStandard 1.6
- BookmarksManager (>= 2.0.0)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 9.0.1)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.