Soenneker.Html.Parser 4.0.1313

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Html.Parser --version 4.0.1313
                    
NuGet\Install-Package Soenneker.Html.Parser -Version 4.0.1313
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Html.Parser" Version="4.0.1313" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Html.Parser" Version="4.0.1313" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Html.Parser" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Html.Parser --version 4.0.1313
                    
#r "nuget: Soenneker.Html.Parser, 4.0.1313"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Html.Parser@4.0.1313
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Html.Parser&version=4.0.1313
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Html.Parser&version=4.0.1313
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.Html.Parser

A utility library for HTML parsing related operations.

Install

dotnet add package Soenneker.Html.Parser

Quick start

using Soenneker.Html.Parser.Registrars;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
var result = services.AddHtmlParserUtilAsSingleton();

Adds IHtmlParserUtil as a singleton service.

What you get

  • IHtmlParserUtil — A utility library for HTML parsing related operations.
  • HtmlParserUtilRegistrar — A utility library for HTML parsing related operations.

API at a glance

API What it does Result / important behavior
IHtmlParserUtil.GetAllAnchors(uri, cancellationToken) Asynchronously retrieves all unique anchor URLs from the specified URI. A task representing the asynchronous operation, with a list of unique anchor URLs found on the page.
IHtmlParserUtil.GetAllAnchorsFromHtml(content, cancellationToken) Retrieves all Anchors From HTML. A list of unique anchor URLs found in the HTML content.
IHtmlParserUtil.GetAllImageUrlsViaRegex(uri, cancellationToken) Asynchronously retrieves all unique image URLs from the specified URI using a regular expression. A task representing the asynchronous operation, with a list of unique image URLs found on the page.
IHtmlParserUtil.GetAllImageUrlsViaRegexFromHtml(content) Retrieves all Image Urls Via Regex From HTML. A list of unique image URLs found in the HTML content.
IHtmlParserUtil.GetAllUrlsFromImgTags(uri, cancellationToken) Asynchronously retrieves all unique image URLs from img tags in the specified URI, resolving relative URLs. A task whose result contains the unique image URLs found in img tags on the page.
IHtmlParserUtil.GetAllUrlsFromImgTagsFromHtml(content, baseUriString, cancellationToken) Retrieves all unique image URLs from img tags in the provided HTML content, resolving relative URLs based on a base URI. A list of unique image URLs from img tags found in the HTML content.
IHtmlParserUtil.DownloadHtml(uri, cancellationToken) Downloads HTML. A task whose result is the text returned by download HTML.
HtmlParserUtilRegistrar.AddHtmlParserUtilAsSingleton(services) Adds IHtmlParserUtil as a singleton service. The same service collection, so additional registrations can be chained.
HtmlParserUtilRegistrar.AddHtmlParserUtilAsScoped(services) Adds IHtmlParserUtil as a scoped service. The same service collection, so additional registrations can be chained.

Practical notes

  • Cancellation stops pending work; it does not undo work that has already completed.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.1333 0 9/7/2026
4.0.1332 35 9/6/2026
4.0.1331 41 9/5/2026
4.0.1330 39 9/5/2026
4.0.1329 116 9/4/2026
4.0.1328 45 9/4/2026
4.0.1327 43 9/4/2026
4.0.1324 42 9/4/2026
4.0.1323 46 9/4/2026
4.0.1322 44 9/4/2026
4.0.1321 49 9/4/2026
4.0.1313 83 8/30/2026
4.0.1312 85 8/30/2026
4.0.1311 97 8/30/2026
4.0.1310 83 8/30/2026
4.0.1308 80 8/30/2026
4.0.1307 95 8/30/2026
4.0.1305 85 8/29/2026
4.0.1304 85 8/29/2026
4.0.1303 90 8/29/2026
Loading failed

Update dependency Soenneker.Extensions.String to 4.0.732 (#1856)