ParseHTMLTables
Filters And Transformers Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 6.5.0 and later.
Find tables inside HTML and extract the contents into objects using the following logic:
- If table has 2 columns and has no header row, treat the first column as key and second as value and create a table of key/value
- If table has a header row, create a table of objects where attribute names are the headers
- If table does not have a header row, create table of objects where attribute names are cell1, cell2, cell3...
#
Script DataName | Description |
---|---|
Script Type | python3 |
Tags | transformer, general |
#
InputsArgument Name | Description |
---|---|
value | The HTML to extract tables from |
title | The title for tables |
filter_indexes | Extract only the tables with given indexes - 0 based |
filter_titles | Extract only the tables with given titles |
#
OutputsThere are no outputs for this script.