Skip to main content

HTML

Extract elements from strings containing html. Requires WrangleWorks Account.

Extract text and links from HTML elements. Requires WrangleWorks Account.

Parameters​

NameDescriptionAccepted ValuesDefaultRequired
I/O
inputName or list of input columns.string, integer, array—Yes
outputName or list of output columns.string, array, nullnullNo
Options
data_typeThe type of data to extract.string; one of:
  • text
  • links
—Yes
Formatting
output_formatFormat of the extract output.string, null; one of:
  • list
  • columns
  • concatenate
nullNo
charCharacter to use when output_format is concatenate.string", "No
Conditions
ifCondition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}.string—No
whereFilter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'.string—No
where_paramsValues used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name.array, object—No

Examples​

wrangles:
- extract.html:
input: HTML
output: Text
data_type: text
HTML
`
Text
wrangles:
- extract.html:
input: HTML
output: Links
data_type: links
HTML
`
Links
Access
RequirementValue
AI-poweredNo
Requires WrangleWorks accountYes
Requires subscriptionNo
Requires external API keyNo
Technical details
FieldValue
Catalog ID28
Catalog keyextract.html
Recipe keyextract.html
Catalog statusactive
Lifecycle statusactive
Recipe Writer eligibleYes
Namespaceextract
Documentation groupextract
AliasesNone
Runtime symbolwrangles.recipe_wrangles.extract.html
Legacy UUID728fc87a-a20d-4efa-833a-612e0b5eadc3

Sources