Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rotvig/LightWebNetScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

12 Commits

Repository files navigation

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.

About

Lightweight .NET web scraper

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /