Name | Modified | Size | Downloads / Week |
---|---|---|---|
WebParse.dll | 2013-10-03 | 8.2 kB | |
README.txt | 2013-10-03 | 580 Bytes | |
Totals: 2 Items | 8.8 kB | 0 |
/** * Class Library: WebParse * Author: Scott Christopher Stauffer <scottyeatscode.blogspot.com> * * An HTML Parsing Library. * * https://github.com/scstauf */ // Some example code. public void WebParseExample() { // Create an HTML object which points to a file containing HTML. HTML html = new HTML(@"C:\Users\Scott\Documents\html.txt"); // Get all "a" tags with "href" attributes // and print their values. foreach (Tag tag in html.GetSpecificTags("a")) if (tag.HasAttribute("href")) Console.WriteLine(tag.GetAttribute("href").Value); }