Class HtmlTableConnector
- Namespace
- Datafication.Connectors.WebConnector.Connectors
- Assembly
- Datafication.WebConnector.dll
Connector for extracting HTML tables from web pages.
public class HtmlTableConnector : WebConnectorBase<HtmlTableConnectorConfiguration>, IDataConnector
- Inheritance
-
objectHtmlTableConnector
- Implements
- Inherited Members
- Extension Methods
Remarks
This connector parses HTML tables and converts them to DataBlocks. It supports extracting single or multiple tables, with options for header detection, metadata inclusion, and table merging.
Constructors
HtmlTableConnector(HtmlTableConnectorConfiguration)
Initializes a new instance of the HtmlTableConnector class.
public HtmlTableConnector(HtmlTableConnectorConfiguration configuration)
Parameters
configurationHtmlTableConnectorConfigurationThe configuration for this connector.
Exceptions
- ArgumentNullException
Thrown when configuration is null.
- ArgumentException
Thrown when configuration is invalid.
Methods
GetDataAsync()
Extracts HTML tables from the configured URL and returns them as a DataBlock.
public override Task<DataBlock> GetDataAsync()
Returns
- Task<DataBlock>
A DataBlock containing the extracted table data.