Skip to main content

ParseHTMLTables

This Script is part of the Filters And Transformers Pack.#

Supported versions

Available on Cortex XSOAR (versions 6.5.0 and later), Cortex XSIAM, and Cortex XPANSE.

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 Data#


NameDescription
Script Typepython3
Tagstransformer, general

Inputs#


Argument NameDescription
valueThe HTML to extract tables from
titleThe title for tables
filter_indexesExtract only the tables with given indexes - 0 based
filter_titlesExtract only the tables with given titles

Outputs#


There are no outputs for this script.