Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.06 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.06 KB

LightWebNetScraper

Lightweight .NET web scraper

README Version 0.0.2

LightWebNetScraper is a .NET project for doing simple scraping tasks.

The project consist of a libary.

Supports plain XPATH or XSLT.

How do I get set up?

Code example

var scraper = new Scraper();

var result = scraper.StartScraping(new List<ScrapeInfo<string>>()
    {
        new ScrapeInfo<string>(
            "https://www.nuget.org/packages/LightWebNetScraper",
            (htmlDoc, scrapeInfo) =>  htmlDoc.DocumentNode.SelectSingleNode(@"//div[@class='package-title']/h1").InnerHtml)
        });
Console.WriteLine(result[0]);
Console.ReadLine();

The InnerHtml in this case is "Renerotvig"

License

LightWebNetScraper is licensed under The MIT License (MIT). Basically, this license grants you the right to use LightWebNetScraper in any way you see fit. See License.md for more info.