Skip to main content

HTML Table

Restonomer can parse the api response of text type in HTML table format. User need to configure the checkpoint in below format:

name = "checkpoint_html_response_dataframe_converter"

data = {
data-request = {
url = "http://localhost:8080/html-response-converter"
}

data-response = {
body = {
type = "Text"
text-format = {
type = "HTMLTableTextFormat"
}
}

persistence = {
type = "LocalFileSystem"
file-format = {
type = "ParquetFileFormat"
}
file-path = "/tmp/response_body"
}
}
}

Compression

In case the html text that is returned by the api is compressed, user can configure the checkpoint in below format:

name = "checkpoint_html_response_dataframe_converter"

data = {
data-request = {
url = "http://localhost:8080/html-response-converter"
}

data-response = {
body = {
type = "Text"
compression = "GZIP"
text-format = {
type = "HTMLTableTextFormat"
}
}

persistence = {
type = "LocalFileSystem"
file-format = {
type = "ParquetFileFormat"
}
file-path = "/tmp/response_body"
}
}
}

As of now, restonomer supports only GZIP compression format.

HTML Table Text Format Configurations

User can configure below other properties for HTML text format that will help restonomer for parsing:

Parameter NameDefault ValueMandatoryDescription
tableNameNoneNoThe name of the table in the table tag that you want to read the data from.