Earl.Crawler 0.0.0-alpha.0.77

This is a prerelease version of Earl.Crawler.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Earl.Crawler --version 0.0.0-alpha.0.77                
NuGet\Install-Package Earl.Crawler -Version 0.0.0-alpha.0.77                
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="Earl.Crawler" Version="0.0.0-alpha.0.77" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Earl.Crawler --version 0.0.0-alpha.0.77                
#r "nuget: Earl.Crawler, 0.0.0-alpha.0.77"                
#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.
// Install Earl.Crawler as a Cake Addin
#addin nuget:?package=Earl.Crawler&version=0.0.0-alpha.0.77&prerelease

// Install Earl.Crawler as a Cake Tool
#tool nuget:?package=Earl.Crawler&version=0.0.0-alpha.0.77&prerelease                

<h1 align="center">earl</h1>

<div align="center">

Looking for URLs in your area.

Checks Coverage Version

</div>

Earl is a suite of APIs for developing url crawlers & web scrapers driven by a middleware pattern similar to, and strongly influenced by, ASP.NET Core.

Basic Usage

var services = new ServiceCollection()
    .AddEarlCrawler()
    .AddEarlJsonPersistence()
    .BuildServiceProvider();

var crawler = services.GetService<IEarlCrawler>();
var options = CrawlerOptionsBuilder.CreateDefault()
    .BatchSize( 50 )
    .MaxRequestCount( 500 )
    .On<CrawlUrlResultEvent>( 
        ( CrawlUrlResultEvent e, CancellationToken cancellation ) =>
        {
            Console.WriteLine( $"Crawled {e.Result.Url}" );
            return ValueTask.CompletedTask;
        }
    )
    .Timeout( TimeSpan.FromMinutes( 30 ) )
    .Use(
        ( CrawlUrlContext context, CrawlUrlDelegate next ) =>
        {
            Console.WriteLine( $"Executing delegate middleware while crawling {context.Url}" );
            return next( context );
        }
    )
    .PersistTo( persist => persist.ToJson( json => json.Destination(...) ) )
    .Build();

await crawler.CrawlAsync( new Uri(...), options );

Documentation

Documentation can be find within the READMEs of the sub-directories representing the conceptual components of Earl:

All public APIs should contain thorough XML (triple slash) comments.

Something missing, still have questions? Please open an Issue or submit a PR!

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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
0.0.0-alpha.0.111 152 3/30/2022
0.0.0-alpha.0.110 114 3/30/2022
0.0.0-alpha.0.109 123 3/30/2022
0.0.0-alpha.0.108 115 3/30/2022
0.0.0-alpha.0.107 122 3/30/2022
0.0.0-alpha.0.106 124 3/30/2022
0.0.0-alpha.0.104 125 3/29/2022
0.0.0-alpha.0.103 130 3/27/2022
0.0.0-alpha.0.102 126 3/27/2022
0.0.0-alpha.0.101 124 3/27/2022
0.0.0-alpha.0.100 124 3/26/2022
0.0.0-alpha.0.99 136 3/26/2022
0.0.0-alpha.0.98 123 3/25/2022
0.0.0-alpha.0.97 127 3/25/2022
0.0.0-alpha.0.96 124 3/25/2022
0.0.0-alpha.0.95 128 3/25/2022
0.0.0-alpha.0.94 132 3/25/2022
0.0.0-alpha.0.93 123 3/25/2022
0.0.0-alpha.0.92 118 3/24/2022
0.0.0-alpha.0.91 118 3/24/2022
0.0.0-alpha.0.90 128 3/24/2022
0.0.0-alpha.0.89 125 3/24/2022
0.0.0-alpha.0.88 120 3/23/2022
0.0.0-alpha.0.85 128 3/23/2022
0.0.0-alpha.0.84 126 3/23/2022
0.0.0-alpha.0.83 125 3/23/2022
0.0.0-alpha.0.82 123 3/23/2022
0.0.0-alpha.0.79 124 3/22/2022
0.0.0-alpha.0.78 121 3/22/2022
0.0.0-alpha.0.77 129 3/22/2022
0.0.0-alpha.0.76 120 3/22/2022
0.0.0-alpha.0.74 122 3/22/2022
0.0.0-alpha.0.73 124 3/22/2022
0.0.0-alpha.0.72 127 3/21/2022
0.0.0-alpha.0.71 124 3/21/2022
0.0.0-alpha.0.70 125 3/20/2022
0.0.0-alpha.0.69 129 3/19/2022
0.0.0-alpha.0.67 130 3/19/2022
0.0.0-alpha.0.66 129 3/19/2022
0.0.0-alpha.0.65 127 3/19/2022
0.0.0-alpha.0.62 125 3/19/2022
0.0.0-alpha.0.61 128 3/13/2022
0.0.0-alpha.0.60 129 3/13/2022
0.0.0-alpha.0.59 125 3/11/2022
0.0.0-alpha.0.58 131 3/7/2022
0.0.0-alpha.0.57 128 3/7/2022
0.0.0-alpha.0.56 119 3/7/2022
0.0.0-alpha.0.55 123 3/7/2022
0.0.0-alpha.0.54 118 3/7/2022
0.0.0-alpha.0.53 126 3/6/2022
0.0.0-alpha.0.52 127 3/6/2022
0.0.0-alpha.0.51 127 3/6/2022