Auto backup (2022-07-13T21:00:22.574Z)
This commit is contained in:
160
flows/27.json
160
flows/27.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"id": 27,
|
||||
"name": "olx ps4game",
|
||||
"name": "olx ps4game che",
|
||||
"active": true,
|
||||
"nodes": [
|
||||
{
|
||||
@@ -23,7 +23,7 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
380,
|
||||
400,
|
||||
300
|
||||
]
|
||||
},
|
||||
@@ -115,8 +115,8 @@
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
200,
|
||||
640
|
||||
180,
|
||||
480
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -140,7 +140,7 @@
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1280,
|
||||
320
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -165,7 +165,7 @@
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
||||
"tableId": "Ps4_games_ch",
|
||||
"tableId": "Items",
|
||||
"returnAll": true,
|
||||
"additionalOptions": {
|
||||
"filter": {
|
||||
@@ -183,7 +183,7 @@
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1280,
|
||||
580
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
@@ -202,15 +202,15 @@
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1480,
|
||||
420
|
||||
1520,
|
||||
400
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "create",
|
||||
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
||||
"tableId": "Ps4_games_ch",
|
||||
"tableId": "Items",
|
||||
"dataToSend": "autoMapInputs"
|
||||
},
|
||||
"name": "Grist",
|
||||
@@ -218,7 +218,7 @@
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1700,
|
||||
580
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
@@ -238,7 +238,7 @@
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1700,
|
||||
260
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -261,23 +261,25 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
"options": {
|
||||
"trimValues": true
|
||||
}
|
||||
},
|
||||
"name": "HTML Extract2",
|
||||
"type": "n8n-nodes-base.htmlExtract",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1900,
|
||||
260
|
||||
1880,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "sendPhoto",
|
||||
"chatId": "1684481",
|
||||
"file": "={{$json[\"image\"]}}",
|
||||
"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>",
|
||||
"caption": "=#{{$node[\"Set\"].json[\"tag\"]}}\n<b>{{$node[\"Merge1\"].json[\"title\"]}} - {{$json[\"price\"]}}</b>\n<i>{{$node[\"Merge1\"].json[\"date\"]}}</i>\n{{$json[\"trim_content\"]}} ...\n<a href=\"{{$node[\"Merge1\"].json[\"link\"]}}\">Подробнее</a>",
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
@@ -285,8 +287,88 @@
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2100,
|
||||
260
|
||||
2540,
|
||||
300
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "31",
|
||||
"name": "Telegram account"
|
||||
}
|
||||
},
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "multiStep",
|
||||
"operations": {
|
||||
"operations": [
|
||||
{
|
||||
"operation": "resize",
|
||||
"width": 300,
|
||||
"height": -1,
|
||||
"resizeOption": "onlyIfLarger"
|
||||
},
|
||||
{
|
||||
"operation": "crop",
|
||||
"width": 300,
|
||||
"height": 100,
|
||||
"positionY": 75
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Edit Image",
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2380,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{$json[\"image\"]}}",
|
||||
"responseFormat": "file",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request2",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
2220,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"functionCode": "// Code here will run once per input item.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.functionItem\n// Tip: You can use luxon for dates and $jmespath for querying JSON structures\n\n// Add a new field called 'myNewField' to the JSON of the item\nitem.trim_content = $json[\"content\"].slice(0,250);\n\n// You can write logs to the browser console\nconsole.log('Done!');\n\nreturn item;"
|
||||
},
|
||||
"name": "FunctionItem",
|
||||
"type": "n8n-nodes-base.functionItem",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2040,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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<a href=\"{{$node[\"Merge1\"].json[\"link\"]}}\">Подробнее</a>",
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"name": "Telegram",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2540,
|
||||
440
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
@@ -424,19 +506,57 @@
|
||||
]
|
||||
},
|
||||
"HTML Extract2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "FunctionItem",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Telegram2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Telegram",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"FunctionItem": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-05-27T16:18:47.443Z",
|
||||
"updatedAt": "2022-07-12T18:48:12.175Z",
|
||||
"updatedAt": "2022-07-13T08:33:43.050Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
|
||||
240
flows/36.json
240
flows/36.json
@@ -51,7 +51,7 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
60,
|
||||
500
|
||||
]
|
||||
},
|
||||
@@ -72,7 +72,7 @@
|
||||
"type": "n8n-nodes-base.htmlExtract",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
220,
|
||||
260,
|
||||
500
|
||||
]
|
||||
},
|
||||
@@ -341,72 +341,6 @@
|
||||
840
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"keepOnlySet": true,
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "count",
|
||||
"value": "={{$json[\"data\"][1]}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"dotNotation": true
|
||||
}
|
||||
},
|
||||
"name": "Set",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
480,
|
||||
840
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "count",
|
||||
"propertyName2": "count"
|
||||
},
|
||||
"name": "Merge4",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
780,
|
||||
860
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "update",
|
||||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||||
"tableId": "Classrooms",
|
||||
"rowId": "2",
|
||||
"fieldsToSend": {
|
||||
"properties": [
|
||||
{
|
||||
"fieldId": "count",
|
||||
"fieldValue": "={{$json[\"count\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "rokoss4",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1020,
|
||||
1020
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||||
@@ -541,7 +475,7 @@
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1020,
|
||||
1040,
|
||||
860
|
||||
]
|
||||
},
|
||||
@@ -810,7 +744,7 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"graphApiVersion": "v13.0",
|
||||
"graphApiVersion": "v14.0",
|
||||
"node": "me",
|
||||
"edge": "accounts",
|
||||
"options": {}
|
||||
@@ -875,7 +809,7 @@
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2500,
|
||||
460
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"sshPassword": {
|
||||
@@ -914,7 +848,7 @@
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
3220,
|
||||
460
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"facebookGraphApi": {
|
||||
@@ -935,7 +869,7 @@
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2660,
|
||||
460
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"facebookGraphApi": {
|
||||
@@ -953,8 +887,8 @@
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2820,
|
||||
460
|
||||
2840,
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -973,7 +907,7 @@
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
3000,
|
||||
460
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1142,7 +1076,7 @@
|
||||
"number": [
|
||||
{
|
||||
"value1": "={{$json[\"recount\"]}}",
|
||||
"value2": 30
|
||||
"value2": 24
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1151,7 +1085,7 @@
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1200,
|
||||
1220,
|
||||
860
|
||||
]
|
||||
},
|
||||
@@ -1194,8 +1128,8 @@
|
||||
"type": "n8n-nodes-base.switch",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1260,
|
||||
480
|
||||
1220,
|
||||
520
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1501,8 +1435,8 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1600,
|
||||
460
|
||||
1620,
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1516,8 +1450,8 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1780,
|
||||
620
|
||||
1800,
|
||||
660
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1530,7 +1464,7 @@
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1960,
|
||||
460
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1565,8 +1499,8 @@
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1780,
|
||||
460
|
||||
1800,
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1583,7 +1517,7 @@
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2140,
|
||||
460
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1612,7 +1546,7 @@
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1440,
|
||||
460
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -1656,8 +1590,74 @@
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2300,
|
||||
460
|
||||
2320,
|
||||
500
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"keepOnlySet": true,
|
||||
"values": {
|
||||
"number": [
|
||||
{
|
||||
"name": "count",
|
||||
"value": "={{$json[\"data\"][1]}}"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {
|
||||
"dotNotation": true
|
||||
}
|
||||
},
|
||||
"name": "Set masani",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
480,
|
||||
840
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "update",
|
||||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||||
"tableId": "Classrooms",
|
||||
"rowId": "2",
|
||||
"fieldsToSend": {
|
||||
"properties": [
|
||||
{
|
||||
"fieldId": "count",
|
||||
"fieldValue": "={{$json[\"count\"]}}"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "masani",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1040,
|
||||
1040
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "count",
|
||||
"propertyName2": "count"
|
||||
},
|
||||
"name": "Merge4",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
780,
|
||||
880
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -1802,34 +1802,7 @@
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Set",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Set": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge4": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "rokoss4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "recount masani",
|
||||
"node": "Set masani",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
@@ -2368,10 +2341,37 @@
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Set masani": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge4": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "recount masani",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "masani",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-06-18T21:12:12.483Z",
|
||||
"updatedAt": "2022-07-12T05:59:27.482Z",
|
||||
"updatedAt": "2022-07-13T19:16:39.544Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
|
||||
388
flows/37.json
388
flows/37.json
@@ -155,20 +155,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "date.google",
|
||||
"propertyName2": "date"
|
||||
},
|
||||
"name": "Merge4",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
160,
|
||||
1000
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||||
@@ -660,8 +646,8 @@
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
500,
|
||||
840
|
||||
780,
|
||||
1180
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -707,8 +693,8 @@
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
760,
|
||||
840
|
||||
1040,
|
||||
1180
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -724,8 +710,8 @@
|
||||
"type": "n8n-nodes-base.ssh",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1000,
|
||||
840
|
||||
1600,
|
||||
860
|
||||
],
|
||||
"credentials": {
|
||||
"sshPassword": {
|
||||
@@ -745,8 +731,8 @@
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1200,
|
||||
840
|
||||
1800,
|
||||
860
|
||||
],
|
||||
"credentials": {
|
||||
"facebookGraphApi": {
|
||||
@@ -764,8 +750,8 @@
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1380,
|
||||
840
|
||||
1980,
|
||||
860
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -783,8 +769,8 @@
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1580,
|
||||
840
|
||||
2180,
|
||||
860
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -816,8 +802,8 @@
|
||||
"type": "n8n-nodes-base.facebookGraphApi",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1800,
|
||||
840
|
||||
2400,
|
||||
860
|
||||
],
|
||||
"credentials": {
|
||||
"facebookGraphApi": {
|
||||
@@ -1333,65 +1319,189 @@
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "update",
|
||||
"docId": "tAuWNMisjXqyEkYudRcA2c",
|
||||
"tableId": "Classrooms",
|
||||
"rowId": "1",
|
||||
"fieldsToSend": {
|
||||
"properties": [
|
||||
"operation": "multiStep",
|
||||
"operations": {
|
||||
"operations": [
|
||||
{
|
||||
"fieldId": "date_ru",
|
||||
"fieldValue": "={{$json[\"date\"][\"ru\"]}}"
|
||||
"operation": "text",
|
||||
"text": "Розпочато запис на \nнавчання за адресою",
|
||||
"fontSize": 64,
|
||||
"fontColor": "#EDEDED",
|
||||
"positionX": 450,
|
||||
"positionY": 100
|
||||
},
|
||||
{
|
||||
"fieldId": "date_ua",
|
||||
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
|
||||
"operation": "text",
|
||||
"text": "вул. Красносільського 59а",
|
||||
"fontSize": 80,
|
||||
"fontColor": "#FFFFFF",
|
||||
"positionY": 400,
|
||||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||||
},
|
||||
{
|
||||
"fieldId": "day_1_ua",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
|
||||
"operation": "text",
|
||||
"text": "Початок занятть",
|
||||
"fontSize": 36,
|
||||
"fontColor": "#EDEDED",
|
||||
"positionY": 520
|
||||
},
|
||||
{
|
||||
"fieldId": "day_2_ua",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
|
||||
},
|
||||
"operation": "text",
|
||||
"text": "={{$node[\"Merge masani\"].json[\"date\"][\"ua\"]}}",
|
||||
"fontSize": 56,
|
||||
"fontColor": "#FFFFFF",
|
||||
"positionY": 580,
|
||||
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Edit Image4",
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1400,
|
||||
860
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{$json[\"urls\"][\"full\"]}}",
|
||||
"responseFormat": "file",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request15",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
700,
|
||||
860
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://avtomoto25.cn.ua/wp-content/uploads/logo_banner.png",
|
||||
"responseFormat": "file",
|
||||
"dataPropertyName": "data2",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request16",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
880,
|
||||
1020
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "composite",
|
||||
"dataPropertyNameComposite": "data2",
|
||||
"operator": "Plus",
|
||||
"positionX": 50,
|
||||
"positionY": 50,
|
||||
"options": {}
|
||||
},
|
||||
"name": "Edit Image8",
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1240,
|
||||
860
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://api.unsplash.com/photos/random?query=schedule",
|
||||
"options": {},
|
||||
"headerParametersUi": {
|
||||
"parameter": [
|
||||
{
|
||||
"fieldId": "time",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day1\"]}}"
|
||||
},
|
||||
"name": "Authorization",
|
||||
"value": "Client-ID SU9IXaIjfJXqKqJ1NM1zgkSjuxLVhVXICfIdWEWvUPM"
|
||||
}
|
||||
]
|
||||
},
|
||||
"queryParametersUi": {
|
||||
"parameter": [
|
||||
{
|
||||
"fieldId": "day_1_ru",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day1\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "day_2_ru",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day2\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "date",
|
||||
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
|
||||
},
|
||||
{
|
||||
"fieldId": "time_2",
|
||||
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day2\"]}}"
|
||||
"name": "orientation",
|
||||
"value": "landscape"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "rokoss",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"name": "HTTP Request17",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
500,
|
||||
940
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
860
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "mergeByIndex",
|
||||
"join": "inner"
|
||||
},
|
||||
"disabled": true
|
||||
"name": "Merge1",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1060,
|
||||
860
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "multiStep",
|
||||
"operations": {
|
||||
"operations": [
|
||||
{
|
||||
"operation": "resize",
|
||||
"width": 1200,
|
||||
"height": -1,
|
||||
"resizeOption": "onlyIfLarger"
|
||||
},
|
||||
{
|
||||
"operation": "draw",
|
||||
"color": "#00000099",
|
||||
"startPositionX": 25,
|
||||
"startPositionY": 25,
|
||||
"endPositionX": 1175,
|
||||
"endPositionY": 605
|
||||
},
|
||||
{
|
||||
"operation": "crop",
|
||||
"width": 1200,
|
||||
"height": 630
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Edit Image5",
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
880,
|
||||
860
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "date.google",
|
||||
"propertyName2": "date"
|
||||
},
|
||||
"name": "Merge masani",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
160,
|
||||
1000
|
||||
]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
@@ -1464,34 +1574,13 @@
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge4",
|
||||
"node": "Merge masani",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge4": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Google Calendar4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "masani",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "HTTP Request5",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge5": {
|
||||
"main": [
|
||||
[
|
||||
@@ -1594,7 +1683,7 @@
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge4",
|
||||
"node": "Merge masani",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
@@ -1623,17 +1712,6 @@
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "SSH2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"SSH2": {
|
||||
"main": [
|
||||
[
|
||||
@@ -1863,10 +1941,108 @@
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image4": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "SSH2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request15": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image5",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request16": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge1",
|
||||
"type": "main",
|
||||
"index": 1
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image8": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request17": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request15",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge1": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image8",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image5": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Merge1",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Merge masani": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Google Calendar4",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "masani",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "HTTP Request17",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-06-20T08:36:58.934Z",
|
||||
"updatedAt": "2022-07-12T11:41:41.432Z",
|
||||
"updatedAt": "2022-07-13T18:59:34.017Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": 38,
|
||||
"name": "olx velo",
|
||||
"active": true,
|
||||
"active": false,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
@@ -353,7 +353,7 @@
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-06-21T19:14:34.282Z",
|
||||
"updatedAt": "2022-06-29T07:55:02.554Z",
|
||||
"updatedAt": "2022-07-13T08:46:31.815Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25",
|
||||
"saveExecutionProgress": "DEFAULT"
|
||||
|
||||
463
flows/49.json
Normal file
463
flows/49.json
Normal file
@@ -0,0 +1,463 @@
|
||||
{
|
||||
"id": 49,
|
||||
"name": "olx processing",
|
||||
"active": false,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "Start",
|
||||
"type": "n8n-nodes-base.start",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
180,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"fieldToSplitOut": "items",
|
||||
"options": {}
|
||||
},
|
||||
"name": "Item Lists",
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
640,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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
|
||||
]
|
||||
},
|
||||
{
|
||||
"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
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"title\"]}}",
|
||||
"operation": "isNotEmpty"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "IF",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1040,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "link",
|
||||
"propertyName2": "link"
|
||||
},
|
||||
"name": "Merge1",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1480,
|
||||
420
|
||||
]
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{$json[\"link\"]}}",
|
||||
"responseFormat": "string",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request1",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1700,
|
||||
260
|
||||
]
|
||||
},
|
||||
{
|
||||
"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
|
||||
]
|
||||
},
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"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
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{$json[\"image\"]}}",
|
||||
"responseFormat": "file",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request2",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
2080,
|
||||
260
|
||||
]
|
||||
},
|
||||
{
|
||||
"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
|
||||
]
|
||||
}
|
||||
],
|
||||
"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
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-07-13T06:02:59.970Z",
|
||||
"updatedAt": "2022-07-13T06:16:40.718Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
"staticData": null,
|
||||
"tags": [
|
||||
{
|
||||
"id": "3",
|
||||
"name": "olx",
|
||||
"createdAt": "2022-06-21T19:20:51.822Z",
|
||||
"updatedAt": "2022-06-21T19:20:51.822Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
112
flows/50.json
Normal file
112
flows/50.json
Normal file
@@ -0,0 +1,112 @@
|
||||
{
|
||||
"id": 50,
|
||||
"name": "olx ps4game experiment",
|
||||
"active": false,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "Start",
|
||||
"type": "n8n-nodes-base.start",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
180,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://www.olx.ua/d/elektronika/igry-i-igrovye-pristavki/igry-dlya-pristavok/chernigov/?currency=UAH&search%5Border%5D=created_at:desc&search%5Bfilter_enum_console_manufacturers%5D%5B0%5D=2272",
|
||||
"responseFormat": "string",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
440,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"triggerTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyX",
|
||||
"value": 15,
|
||||
"unit": "minutes"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Cron2",
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
180,
|
||||
520
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"workflowId": "49"
|
||||
},
|
||||
"name": "Execute Workflow",
|
||||
"type": "n8n-nodes-base.executeWorkflow",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
300
|
||||
]
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Start": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Execute Workflow",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Cron2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-07-13T06:05:01.978Z",
|
||||
"updatedAt": "2022-07-13T07:46:21.510Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
"staticData": null,
|
||||
"tags": [
|
||||
{
|
||||
"id": "3",
|
||||
"name": "olx",
|
||||
"createdAt": "2022-06-21T19:20:51.822Z",
|
||||
"updatedAt": "2022-06-21T19:20:51.822Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
572
flows/51.json
Normal file
572
flows/51.json
Normal file
@@ -0,0 +1,572 @@
|
||||
{
|
||||
"id": 51,
|
||||
"name": "olx ps5 console",
|
||||
"active": false,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "Start",
|
||||
"type": "n8n-nodes-base.start",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
180,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://www.olx.ua/d/elektronika/igry-i-igrovye-pristavki/pristavki/q-playstation-5/?currency=UAH&search%5Border%5D=created_at:desc&search%5Bfilter_enum_console_manufacturers%5D%5B0%5D=2272",
|
||||
"responseFormat": "string",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
400,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": [
|
||||
560,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"fieldToSplitOut": "items",
|
||||
"options": {}
|
||||
},
|
||||
"name": "Item Lists",
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
720,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": [
|
||||
900,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"triggerTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyX",
|
||||
"value": 15,
|
||||
"unit": "minutes"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Cron2",
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
180,
|
||||
480
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "link",
|
||||
"value": "=https://m.olx.ua{{$json[\"link\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "tag",
|
||||
"value": "ps5_console"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Set",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1280,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"title\"]}}",
|
||||
"operation": "isNotEmpty"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "IF",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1080,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
||||
"tableId": "Items",
|
||||
"returnAll": true,
|
||||
"additionalOptions": {
|
||||
"filter": {
|
||||
"filterProperties": [
|
||||
{
|
||||
"field": "tag",
|
||||
"values": "ps5_console"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "Grist1",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1280,
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "link",
|
||||
"propertyName2": "link"
|
||||
},
|
||||
"name": "Merge1",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1520,
|
||||
400
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "create",
|
||||
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
||||
"tableId": "Items",
|
||||
"dataToSend": "autoMapInputs"
|
||||
},
|
||||
"name": "Grist",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1700,
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{$json[\"link\"]}}",
|
||||
"responseFormat": "string",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request1",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1700,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": [
|
||||
1880,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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[\"trim_content\"]}} ...\n<a href=\"{{$node[\"Merge1\"].json[\"link\"]}}\">Подробнее</a>",
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"name": "Telegram2",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2540,
|
||||
300
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "31",
|
||||
"name": "Telegram account"
|
||||
}
|
||||
},
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "multiStep",
|
||||
"operations": {
|
||||
"operations": [
|
||||
{
|
||||
"operation": "resize",
|
||||
"width": 300,
|
||||
"height": -1,
|
||||
"resizeOption": "onlyIfLarger"
|
||||
},
|
||||
{
|
||||
"operation": "crop",
|
||||
"width": 300,
|
||||
"height": 100,
|
||||
"positionY": 75
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Edit Image",
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2380,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{$json[\"image\"]}}",
|
||||
"responseFormat": "file",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request2",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
2220,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"functionCode": "// Code here will run once per input item.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.functionItem\n// Tip: You can use luxon for dates and $jmespath for querying JSON structures\n\n// Add a new field called 'myNewField' to the JSON of the item\nitem.trim_content = $json[\"content\"].slice(0,250);\n\n// You can write logs to the browser console\nconsole.log('Done!');\n\nreturn item;"
|
||||
},
|
||||
"name": "FunctionItem",
|
||||
"type": "n8n-nodes-base.functionItem",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2040,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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<a href=\"{{$node[\"Merge1\"].json[\"link\"]}}\">Подробнее</a>",
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"name": "Telegram",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2540,
|
||||
440
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "31",
|
||||
"name": "Telegram account"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Start": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Cron2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"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": "FunctionItem",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Telegram2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Telegram",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"FunctionItem": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-07-13T08:34:00.920Z",
|
||||
"updatedAt": "2022-07-13T09:31:31.351Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
"staticData": null,
|
||||
"tags": [
|
||||
{
|
||||
"id": "3",
|
||||
"name": "olx",
|
||||
"createdAt": "2022-06-21T19:20:51.822Z",
|
||||
"updatedAt": "2022-06-21T19:20:51.822Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
572
flows/52.json
Normal file
572
flows/52.json
Normal file
@@ -0,0 +1,572 @@
|
||||
{
|
||||
"id": 52,
|
||||
"name": "olx forbidden west",
|
||||
"active": true,
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"name": "Start",
|
||||
"type": "n8n-nodes-base.start",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
180,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "https://www.olx.ua/d/elektronika/igry-i-igrovye-pristavki/igry-dlya-pristavok/q-horizon-forbidden-west/?currency=UAH&search%5Border%5D=created_at:desc&search%5Bfilter_enum_console_manufacturers%5D%5B0%5D=2272&last_seen_id=755093271",
|
||||
"responseFormat": "string",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
400,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": [
|
||||
560,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"fieldToSplitOut": "items",
|
||||
"options": {}
|
||||
},
|
||||
"name": "Item Lists",
|
||||
"type": "n8n-nodes-base.itemLists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
720,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": [
|
||||
900,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"triggerTimes": {
|
||||
"item": [
|
||||
{
|
||||
"mode": "everyX",
|
||||
"value": 15,
|
||||
"unit": "minutes"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "Cron2",
|
||||
"type": "n8n-nodes-base.cron",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
180,
|
||||
480
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"values": {
|
||||
"string": [
|
||||
{
|
||||
"name": "link",
|
||||
"value": "=https://m.olx.ua{{$json[\"link\"]}}"
|
||||
},
|
||||
{
|
||||
"name": "tag",
|
||||
"value": "forbidden_west"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Set",
|
||||
"type": "n8n-nodes-base.set",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1280,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"conditions": {
|
||||
"string": [
|
||||
{
|
||||
"value1": "={{$json[\"title\"]}}",
|
||||
"operation": "isNotEmpty"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "IF",
|
||||
"type": "n8n-nodes-base.if",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1080,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
||||
"tableId": "Items",
|
||||
"returnAll": true,
|
||||
"additionalOptions": {
|
||||
"filter": {
|
||||
"filterProperties": [
|
||||
{
|
||||
"field": "tag",
|
||||
"values": "forbidden_west"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "Grist1",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1280,
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"mode": "removeKeyMatches",
|
||||
"propertyName1": "link",
|
||||
"propertyName2": "link"
|
||||
},
|
||||
"name": "Merge1",
|
||||
"type": "n8n-nodes-base.merge",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1520,
|
||||
400
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "create",
|
||||
"docId": "d61nLm6Fn99jwqxd6hdT9d",
|
||||
"tableId": "Items",
|
||||
"dataToSend": "autoMapInputs"
|
||||
},
|
||||
"name": "Grist",
|
||||
"type": "n8n-nodes-base.grist",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
1700,
|
||||
500
|
||||
],
|
||||
"credentials": {
|
||||
"gristApi": {
|
||||
"id": "21",
|
||||
"name": "Grist account"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{$json[\"link\"]}}",
|
||||
"responseFormat": "string",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request1",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1700,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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": [
|
||||
1880,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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[\"trim_content\"]}} ...\n<a href=\"{{$node[\"Merge1\"].json[\"link\"]}}\">Подробнее</a>",
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"name": "Telegram2",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2540,
|
||||
300
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "31",
|
||||
"name": "Telegram account"
|
||||
}
|
||||
},
|
||||
"disabled": true
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"operation": "multiStep",
|
||||
"operations": {
|
||||
"operations": [
|
||||
{
|
||||
"operation": "resize",
|
||||
"width": 300,
|
||||
"height": -1,
|
||||
"resizeOption": "onlyIfLarger"
|
||||
},
|
||||
{
|
||||
"operation": "crop",
|
||||
"width": 300,
|
||||
"height": 100,
|
||||
"positionY": 75
|
||||
}
|
||||
]
|
||||
},
|
||||
"options": {}
|
||||
},
|
||||
"name": "Edit Image",
|
||||
"type": "n8n-nodes-base.editImage",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2380,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"url": "={{$json[\"image\"]}}",
|
||||
"responseFormat": "file",
|
||||
"options": {}
|
||||
},
|
||||
"name": "HTTP Request2",
|
||||
"type": "n8n-nodes-base.httpRequest",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
2220,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"functionCode": "// Code here will run once per input item.\n// More info and help: https://docs.n8n.io/nodes/n8n-nodes-base.functionItem\n// Tip: You can use luxon for dates and $jmespath for querying JSON structures\n\n// Add a new field called 'myNewField' to the JSON of the item\nitem.trim_content = $json[\"content\"].slice(0,250);\n\n// You can write logs to the browser console\nconsole.log('Done!');\n\nreturn item;"
|
||||
},
|
||||
"name": "FunctionItem",
|
||||
"type": "n8n-nodes-base.functionItem",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2040,
|
||||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"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<a href=\"{{$node[\"Merge1\"].json[\"link\"]}}\">Подробнее</a>",
|
||||
"parse_mode": "HTML"
|
||||
}
|
||||
},
|
||||
"name": "Telegram",
|
||||
"type": "n8n-nodes-base.telegram",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
2540,
|
||||
440
|
||||
],
|
||||
"credentials": {
|
||||
"telegramApi": {
|
||||
"id": "31",
|
||||
"name": "Telegram account"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Start": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"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
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Cron2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request",
|
||||
"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": "FunctionItem",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"Edit Image": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Telegram2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
},
|
||||
{
|
||||
"node": "Telegram",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"HTTP Request2": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Edit Image",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
},
|
||||
"FunctionItem": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "HTTP Request2",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"createdAt": "2022-07-13T08:39:07.784Z",
|
||||
"updatedAt": "2022-07-13T08:39:39.443Z",
|
||||
"settings": {
|
||||
"errorWorkflow": "25"
|
||||
},
|
||||
"staticData": null,
|
||||
"tags": [
|
||||
{
|
||||
"id": "3",
|
||||
"name": "olx",
|
||||
"createdAt": "2022-06-21T19:20:51.822Z",
|
||||
"updatedAt": "2022-06-21T19:20:51.822Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user