2022-07-13 21:00:22 +00:00
|
|
|
{
|
2022-10-27 21:01:19 +00:00
|
|
|
"createdAt": "2022-07-13T06:02:59.970Z",
|
|
|
|
|
"updatedAt": "2022-07-13T06:16:40.718Z",
|
2022-07-13 21:00:22 +00:00
|
|
|
"id": 49,
|
|
|
|
|
"name": "olx processing",
|
|
|
|
|
"active": false,
|
|
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"parameters": {},
|
|
|
|
|
"name": "Start",
|
|
|
|
|
"type": "n8n-nodes-base.start",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
180,
|
|
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "08c53b47-c844-4808-a031-b537c9174833"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"fieldToSplitOut": "items",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "Item Lists",
|
|
|
|
|
"type": "n8n-nodes-base.itemLists",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
640,
|
|
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "2a863d51-d66d-46bb-b0a8-9a81696ef85a"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"dataPropertyName": "items",
|
|
|
|
|
"extractionValues": {
|
|
|
|
|
"values": [
|
|
|
|
|
{
|
|
|
|
|
"key": "title",
|
|
|
|
|
"cssSelector": ".css-v3vynn-Text"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "link",
|
|
|
|
|
"cssSelector": "a.css-1bbgabe",
|
|
|
|
|
"returnValue": "attribute",
|
|
|
|
|
"attribute": "href"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "image",
|
|
|
|
|
"cssSelector": ".css-gwhqbt",
|
|
|
|
|
"returnValue": "attribute",
|
|
|
|
|
"attribute": "src"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "date",
|
|
|
|
|
"cssSelector": "p.css-p6wsjo-Text.eu5v0x0"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "HTML Extract1",
|
|
|
|
|
"type": "n8n-nodes-base.htmlExtract",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
860,
|
|
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "e0c83e75-f2b4-4c14-89fe-16a339dc2679"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"values": {
|
|
|
|
|
"string": [
|
|
|
|
|
{
|
|
|
|
|
"name": "link",
|
|
|
|
|
"value": "=https://m.olx.ua{{$json[\"link\"]}}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "tag",
|
|
|
|
|
"value": "ps4_games_ch"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "Set",
|
|
|
|
|
"type": "n8n-nodes-base.set",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1260,
|
|
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "5ef16886-3fe0-451d-96c6-8435444d6862"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"conditions": {
|
|
|
|
|
"string": [
|
|
|
|
|
{
|
|
|
|
|
"value1": "={{$json[\"title\"]}}",
|
|
|
|
|
"operation": "isNotEmpty"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "IF",
|
|
|
|
|
"type": "n8n-nodes-base.if",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1040,
|
|
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "68a5396a-554a-42b3-9d53-3c9f1c14bfab"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
|
|
|
|
"tableId": "Ps4_games_ch",
|
|
|
|
|
"returnAll": true,
|
|
|
|
|
"additionalOptions": {
|
|
|
|
|
"filter": {
|
|
|
|
|
"filterProperties": [
|
|
|
|
|
{
|
|
|
|
|
"field": "tag",
|
|
|
|
|
"values": "ps4_games_ch"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "Grist1",
|
|
|
|
|
"type": "n8n-nodes-base.grist",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1280,
|
|
|
|
|
580
|
|
|
|
|
],
|
|
|
|
|
"credentials": {
|
|
|
|
|
"gristApi": {
|
|
|
|
|
"id": "21",
|
|
|
|
|
"name": "Grist account"
|
|
|
|
|
}
|
2022-08-03 21:00:21 +00:00
|
|
|
},
|
|
|
|
|
"id": "d0357674-f48c-4f23-9453-0365c362f9b3"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"mode": "removeKeyMatches",
|
|
|
|
|
"propertyName1": "link",
|
|
|
|
|
"propertyName2": "link"
|
|
|
|
|
},
|
|
|
|
|
"name": "Merge1",
|
|
|
|
|
"type": "n8n-nodes-base.merge",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1480,
|
|
|
|
|
420
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "3ca03ebc-548b-4f16-beac-75e7663f2f4d"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"operation": "create",
|
|
|
|
|
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
|
|
|
|
"tableId": "Ps4_games_ch",
|
|
|
|
|
"dataToSend": "autoMapInputs"
|
|
|
|
|
},
|
|
|
|
|
"name": "Grist",
|
|
|
|
|
"type": "n8n-nodes-base.grist",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1700,
|
|
|
|
|
580
|
|
|
|
|
],
|
|
|
|
|
"credentials": {
|
|
|
|
|
"gristApi": {
|
|
|
|
|
"id": "21",
|
|
|
|
|
"name": "Grist account"
|
|
|
|
|
}
|
2022-08-03 21:00:21 +00:00
|
|
|
},
|
|
|
|
|
"id": "291d3874-a603-4d2d-8a3c-9b0944d83dd6"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"url": "={{$json[\"link\"]}}",
|
|
|
|
|
"responseFormat": "string",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "HTTP Request1",
|
|
|
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
|
|
|
"typeVersion": 2,
|
|
|
|
|
"position": [
|
|
|
|
|
1700,
|
|
|
|
|
260
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "31952696-3f3e-4fc6-9f45-023e05635672"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"extractionValues": {
|
|
|
|
|
"values": [
|
|
|
|
|
{
|
|
|
|
|
"key": "price",
|
|
|
|
|
"cssSelector": "h3.css-okktvh-Text.eu5v0x0"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "content",
|
|
|
|
|
"cssSelector": "div.css-g5mtbi-Text"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "image",
|
|
|
|
|
"cssSelector": "img.css-1bmvjcs",
|
|
|
|
|
"returnValue": "attribute",
|
|
|
|
|
"attribute": "src"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {
|
|
|
|
|
"trimValues": true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "HTML Extract2",
|
|
|
|
|
"type": "n8n-nodes-base.htmlExtract",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
1900,
|
|
|
|
|
260
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "5702e862-cd2f-4417-887a-9cd018601df8"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"operation": "sendPhoto",
|
|
|
|
|
"chatId": "1684481",
|
|
|
|
|
"binaryData": true,
|
|
|
|
|
"additionalFields": {
|
|
|
|
|
"caption": "=#{{$node[\"Set\"].json[\"tag\"]}}\n<b>{{$node[\"Merge1\"].json[\"title\"]}} - {{$json[\"price\"]}}</b>\n<i>{{$node[\"Merge1\"].json[\"date\"]}}</i>\n{{$json[\"content\"]}}\n<a href=\"{{$node[\"Merge1\"].json[\"link\"]}}\">ссылка</a>",
|
|
|
|
|
"parse_mode": "HTML"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "Telegram2",
|
|
|
|
|
"type": "n8n-nodes-base.telegram",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
2440,
|
|
|
|
|
260
|
|
|
|
|
],
|
|
|
|
|
"credentials": {
|
|
|
|
|
"telegramApi": {
|
|
|
|
|
"id": "31",
|
|
|
|
|
"name": "Telegram account"
|
|
|
|
|
}
|
2022-08-03 21:00:21 +00:00
|
|
|
},
|
|
|
|
|
"id": "2fed12d6-c0e2-4148-b2d5-e469025a6843"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"operation": "multiStep",
|
|
|
|
|
"operations": {
|
|
|
|
|
"operations": [
|
|
|
|
|
{
|
|
|
|
|
"operation": "resize",
|
|
|
|
|
"width": 300,
|
|
|
|
|
"height": -1,
|
|
|
|
|
"resizeOption": "onlyIfLarger"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"operation": "crop",
|
|
|
|
|
"width": 300,
|
|
|
|
|
"height": 100,
|
|
|
|
|
"positionY": 50
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "Edit Image",
|
|
|
|
|
"type": "n8n-nodes-base.editImage",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
2260,
|
|
|
|
|
260
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "7fc849e7-946b-46e8-82d2-7d6fd8a072c4"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"url": "={{$json[\"image\"]}}",
|
|
|
|
|
"responseFormat": "file",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "HTTP Request2",
|
|
|
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
|
|
|
"typeVersion": 2,
|
|
|
|
|
"position": [
|
|
|
|
|
2080,
|
|
|
|
|
260
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "ae5ecbee-159b-454b-8379-5ffe0b6e587f"
|
2022-07-13 21:00:22 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"extractionValues": {
|
|
|
|
|
"values": [
|
|
|
|
|
{
|
|
|
|
|
"key": "items",
|
|
|
|
|
"cssSelector": "div.css-19ucd76",
|
|
|
|
|
"returnValue": "html",
|
|
|
|
|
"returnArray": true
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "HTML Extract",
|
|
|
|
|
"type": "n8n-nodes-base.htmlExtract",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
400,
|
|
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "aef83ffe-7736-47ee-9044-c60ed1daa9a6"
|
2022-07-13 21:00:22 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"connections": {
|
|
|
|
|
"Item Lists": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "HTML Extract1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"HTML Extract1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "IF",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"IF": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Set",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Set": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Merge1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Grist1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Merge1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 1
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Merge1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Grist",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"node": "HTTP Request1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"HTTP Request1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "HTML Extract2",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"HTML Extract2": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "HTTP Request2",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Edit Image": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Telegram2",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"HTTP Request2": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Edit Image",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Start": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "HTML Extract",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"HTML Extract": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Item Lists",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"settings": {
|
|
|
|
|
"errorWorkflow": "25"
|
|
|
|
|
},
|
|
|
|
|
"staticData": null,
|
2022-07-20 21:00:15 +00:00
|
|
|
"pinData": null,
|
2022-07-13 21:00:22 +00:00
|
|
|
"tags": [
|
|
|
|
|
{
|
|
|
|
|
"createdAt": "2022-06-21T19:20:51.822Z",
|
2022-10-27 21:01:19 +00:00
|
|
|
"updatedAt": "2022-06-21T19:20:51.822Z",
|
|
|
|
|
"id": "3",
|
|
|
|
|
"name": "olx"
|
2022-07-13 21:00:22 +00:00
|
|
|
}
|
2022-11-02 22:00:30 +00:00
|
|
|
],
|
|
|
|
|
"hash": "b8c725ca4bc80b669685f5acf1b4a504"
|
2022-07-13 21:00:22 +00:00
|
|
|
}
|