RvdB.Scrapionize
1.5.0
See the version list below for details.
dotnet add package RvdB.Scrapionize --version 1.5.0
NuGet\Install-Package RvdB.Scrapionize -Version 1.5.0
<PackageReference Include="RvdB.Scrapionize" Version="1.5.0" />
paket add RvdB.Scrapionize --version 1.5.0
#r "nuget: RvdB.Scrapionize, 1.5.0"
// Install RvdB.Scrapionize as a Cake Addin #addin nuget:?package=RvdB.Scrapionize&version=1.5.0 // Install RvdB.Scrapionize as a Cake Tool #tool nuget:?package=RvdB.Scrapionize&version=1.5.0
Scrapionize
Scrapionize (a Scraper for Sessionize) is a NuGet package to scrape a Sessionize CFP page and give you the basic information that's on the CFP page. The information we'll get from the page:
- Name of the event
- Start and End Date of the event
- Location of the event
- URL of the event
- Start and End date of the CFP
- Arrangements around Travel, Accomodation and Event Fee for speakers
Scrapionize uses the HtmlAgilityPack package to parse the Sessionize CFP page.
Examples
Using Scrapionize is pretty straightforward. There's a scraper interface you can register, and a class providing the implementation for that interface. If you're using .NET dependency injection, there's also an extension method to auto-setup DI.
Example: using .NET Dependency Injection
Use the extension method to setup Scrapionize.
builder.Services.AddScrapionize();
Inject the interface into the constructor of the class you want to use it in.
private IScraper _scraper;
public SomeClass(IScraper scraper)
{
_scraper = scraper;
}
And then use the scraper to get your Sessionize data!
var sessionizeData = _scraper.Scrape(new Uri("<YOUR-SESSIONIZE-URL>"));
Example: using new
Not the preferred way of adding dependencies, but still an option.
var scraper = new Scraper(); //new is glue!
var sessionizeData = scraper.Scrape(new Uri("<YOUR-SESSIONIZE-URL>"));
Hollywood produced an entire movie centered on this principle, in which the LEGO bad-guy was trying to glue pieces together.
Don't be that guy.
(Inspired by the New is Glue article on ardalis.com)
Product | Versions 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- HtmlAgilityPack (>= 1.11.46)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Added additional test cases