Net.RafaelEstevam.Spider.Simple.Lib 0.6.365

Suggested Alternatives

RafaelEstevam.Simple.Spider

There is a newer version of this package available.
See the version list below for details.
dotnet add package Net.RafaelEstevam.Spider.Simple.Lib --version 0.6.365
                    
NuGet\Install-Package Net.RafaelEstevam.Spider.Simple.Lib -Version 0.6.365
                    
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="Net.RafaelEstevam.Spider.Simple.Lib" Version="0.6.365" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Net.RafaelEstevam.Spider.Simple.Lib" Version="0.6.365" />
                    
Directory.Packages.props
<PackageReference Include="Net.RafaelEstevam.Spider.Simple.Lib" />
                    
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 Net.RafaelEstevam.Spider.Simple.Lib --version 0.6.365
                    
#r "nuget: Net.RafaelEstevam.Spider.Simple.Lib, 0.6.365"
                    
#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.
#addin nuget:?package=Net.RafaelEstevam.Spider.Simple.Lib&version=0.6.365
                    
Install Net.RafaelEstevam.Spider.Simple.Lib as a Cake Addin
#tool nuget:?package=Net.RafaelEstevam.Spider.Simple.Lib&version=0.6.365
                    
Install Net.RafaelEstevam.Spider.Simple.Lib as a Cake Tool

Project migrated to RafaelEstevam.Simple.Spider

SimpleSpider

A simple and modular web spider written in C# .Net Core

.NET Core The MIT License

Content

Some advantages

  • Very simple to use and operate, ideal for lots of small projects or personal ones
  • Easy html filter with HObject (a HtmlNode wrap with use similar to JObject)
  • Internal conversion from html to XElement, no need to external tools on use
  • Automatic Json parser to JObject
  • Automatic Json deserialize <T>
  • Modular Parser engine (you can add your own parsers!)
    • JSON and XML already included
  • Modular Caching engine (you can add your own!)
    • Stand alone Cache engine included, no need to external softwares
  • Modular Downloader engine (you can add your own!)
    • WebClient with cookies or HttpClient download engine included

Easy import with NuGet

Getting started

  1. Start a new console project and add Nuget Reference
  2. PM> Install-Package Net.RafaelEstevam.Spider.Simple.Lib
  3. Create a class for your spider (or leave in program)
  4. create a new instance of SimpleSpider
    1. Give it a name, cache and log will be saved with that name
    2. Give it a domain (your spider will not fleet from it)
  5. Add a event FetchCompleted to
  6. Optionally give a first page with AddPage. If omitted, it will use the home page of the domain
  7. Call Execute()
void run()
{
    var spider = new SimpleSpider("QuotesToScrape", new Uri("http://quotes.toscrape.com/"));
    // Set the completed event to implement your stuff
    spider.FetchCompleted += fetchCompleted_items;
    // execute
    spider.Execute();
}
void fetchCompleted_items(object Sender, FetchCompleteEventArgs args)
{
    // walk around ...
    // TIP: inspect args to see stuff

    var hObj = args.GetHObject();
    string[] quotes = hObj["span > .text"];
}

TIP: Use the Simple.Tests project to see examples and poke around

Samples

See all samples at Simple.Tests

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 is compatible. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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.6.366 587 11/30/2020 0.6.366 is deprecated because it is no longer maintained.
0.6.365 854 10/20/2020 0.6.365 is deprecated because it is no longer maintained.
0.5.347 698 9/23/2020
0.5.320 495 9/17/2020
0.5.272 553 8/22/2020
0.5.239 558 8/10/2020
0.5.192 615 8/3/2020
0.5.164 668 7/30/2020
0.5.145 736 7/29/2020
0.4.116 592 7/26/2020
0.4.104 509 7/24/2020
0.4.76 547 7/21/2020
0.4.45 550 7/19/2020

Work in progress. See examples and documentation on GitHub page
Commit da270fe