htmlExtract.json•2.17 kB
{
"nodeType": "n8n-nodes-base.htmlExtract",
"displayName": "HTML Extract",
"description": "Extracts data from HTML",
"version": 1,
"properties": [
{
"name": "sourceData",
"displayName": "Source Data",
"type": "options",
"default": "json",
"description": "If HTML should be read from binary or JSON data",
"options": [
{
"name": "Binary",
"value": "binary"
},
{
"name": "JSON",
"value": "json"
}
]
},
{
"name": "dataPropertyName",
"displayName": "Input Binary Field",
"type": "string",
"default": "data",
"required": true,
"displayOptions": {
"show": {
"sourceData": [
"binary"
]
}
}
},
{
"name": "extractionValues",
"displayName": "Extraction Values",
"type": "fixedCollection",
"default": {},
"description": "The key under which the extracted value should be saved",
"placeholder": "Add Value",
"typeOptions": {
"multipleValues": true
},
"displayOptions": {
"show": {
"returnValue": [
"attribute"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Whether to remove automatically all spaces and newlines from the beginning and end of the values",
"placeholder": "Add option",
"options": [
{
"name": "trimValues",
"displayName": "Trim Values",
"type": "boolean",
"default": true,
"description": "Whether to remove automatically all spaces and newlines from the beginning and end of the values"
}
]
}
],
"credentialsConfig": [],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}