Ufxtract

Powerful, easy to use .Net microformats parser

Input Url fragments

The UfWebRequest has a load method that takes a Url string and a format description. You can also target fragments of a page by adding a HTML element id reference to the end of the Url. In the example below we target a div with the id "uf". Only the HTML contents of this div are parsed.

Once the parse is complete, the data property of the web request will hold the results.

Code example

using UfXtract;

string url = "https://ufxtract.com/testsuite/hcard/hcard1.htm#uf";

UfWebRequest webRequest = new UfWebRequest();
webRequest.Load(url, UfFormats.HCard());

if (webRequest.Data.Nodes.Count > 0)
{
   UfDataToJson dataConvertor = new UfDataToJson();
   Response.ContentType = "application/json";
   Response.Write(dataConvertor.Convert(webRequest.Data, UfFormats.HCard()));
}
Download Code MIT Open Source License About the UfXtract .Net library

Output formats

Formats

Inputs

.Net

Reporting and errors