Files
n8n/flows/35.json

189 lines
3.5 KiB
JSON

{
"id": 35,
"name": "avtomoto review",
"active": false,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
80,
360
]
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
460,
300
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "review",
"cssSelector": "tr",
"returnValue": "html",
"returnArray": true
}
]
},
"options": {
"trimValues": false
}
},
"name": "HTML Extract",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
680,
300
]
},
{
"parameters": {
"fieldToSplitOut": "review",
"options": {}
},
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
900,
300
]
},
{
"parameters": {
"dataPropertyName": "review",
"extractionValues": {
"values": [
{
"key": "title",
"cssSelector": "div.mrp.name"
},
{
"key": "link",
"cssSelector": "a.post-permalink",
"returnValue": "attribute",
"attribute": "href"
},
{
"key": "content",
"cssSelector": "div.mrp-comment.mrp"
}
]
},
"options": {}
},
"name": "HTML Extract1",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
1140,
300
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"title\"]}}",
"operation": "isNotEmpty"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1340,
300
]
}
],
"connections": {
"HTTP Request": {
"main": [
[
{
"node": "HTML Extract",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract": {
"main": [
[
{
"node": "Item Lists",
"type": "main",
"index": 0
}
]
]
},
"Item Lists": {
"main": [
[
{
"node": "HTML Extract1",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract1": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"Start": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-18T18:03:07.218Z",
"updatedAt": "2022-06-18T18:19:53.389Z",
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"tags": [
{
"id": "1",
"name": "avtomoto25",
"createdAt": "2022-05-10T18:06:30.022Z",
"updatedAt": "2022-05-10T18:06:30.022Z"
}
]
}