https://github.com/peteroupc/htmlparsercsharp
https://github.com/peteroupc/htmlparsercsharp
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/peteroupc/htmlparsercsharp
- Owner: peteroupc
- License: other
- Created: 2013-03-18T03:01:10.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T04:04:42.000Z (over 1 year ago)
- Last Synced: 2025-07-01T05:02:40.954Z (about 1 year ago)
- Language: C#
- Size: 1.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
HTML5 parser for C#, translated from the original Java.
Takes an input stream or a file and returns an HTML document tree.
The API is currently only a subset of the DOM. Example:
IDocument doc=HtmlDocument.parseFile(filename);
for(IElement element : doc.getElementsByTagName("img")){
Console.WriteLine(element.getAttribute("src"));
}
Copyright (C) 2013 Peter Occil. Licensed under the Expat License.
Sample code on this README file is dedicated to the public domain under CC0:
[https://creativecommons.org/publicdomain/zero/1.0/](https://creativecommons.org/publicdomain/zero/1.0/)