Scrapionize (a Scraper for Sessionize) enables you to get basic CFP data from a Sessionize CFP page.
License
—
Deps
2
Install Size
—
Vulns
✓ 0
Published
Nov 28, 2022
$ dotnet add package RvdB.ScrapionizeScrapionize (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:
Scrapionize uses the HtmlAgilityPack package to parse the Sessionize CFP page.
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.
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>"));
newNot 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)