Auto backup (2022-07-12T21:00:41.932Z)

This commit is contained in:
nia
2022-07-12 21:00:41 +00:00
parent 5cfc55831f
commit 345aff0585
8 changed files with 1181 additions and 374 deletions

View File

@@ -83,6 +83,9 @@
},
{
"fieldToAggregate": "address"
},
{
"fieldToAggregate": "time_2"
}
]
},
@@ -99,7 +102,7 @@
{
"parameters": {
"respondWith": "json",
"responseBody": "={ \"data\": \n { \"data_rokoss\":\n {\n \"ru\": \"{{$json[\"date_ru\"][0]}}\",\n \"ua\": \"{{$json[\"date_ua\"][0]}}\"\n },\n \n \"data_masani\":\n {\n \"ru\": \"{{$json[\"date_ru\"][1]}}\",\n \"ua\": \"{{$json[\"date_ua\"][1]}}\"\n },\n \"data_prospect\":\n {\n \"ru\": \"{{$json[\"date_ru\"][2]}}\",\n \"ua\": \"{{$json[\"date_ua\"][2]}}\"\n } \n },\n \"count\":\n {\n \"rokoss\": \"{{$json[\"count\"][0]}}\",\n \"masani\": \"{{$json[\"count\"][1]}}\",\n \"prospect\": \"{{$json[\"count\"][2]}}\"\n },\n\n\"schedule\":\n {\n \"rokoss\":\n {\n \"day1\":\n {\n \"ru\": \"{{$json[\"day_1_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_1_ua\"][0]}}\"\n },\n \"day2\":\n {\n \"ru\": \"{{$json[\"day_2_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_2_ua\"][0]}}\"\n },\n \"time\": \"{{$json[\"time\"][0]}}\"\n },\n\"masani\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][1]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][1]}}\"\n},\n\"time\": \"{{$json[\"time\"][1]}}\"\n},\n\"prospect\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][2]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][2]}}\"\n},\n\"time\": \"{{$json[\"time\"][2]}}\"\n}\n}\n}",
"responseBody": "={ \"data\": \n { \"data_rokoss\":\n {\n \"ru\": \"{{$json[\"date_ru\"][0]}}\",\n \"ua\": \"{{$json[\"date_ua\"][0]}}\"\n },\n \n \"data_masani\":\n {\n \"ru\": \"{{$json[\"date_ru\"][1]}}\",\n \"ua\": \"{{$json[\"date_ua\"][1]}}\"\n },\n \"data_prospect\":\n {\n \"ru\": \"{{$json[\"date_ru\"][2]}}\",\n \"ua\": \"{{$json[\"date_ua\"][2]}}\"\n } \n },\n \"count\":\n {\n \"rokoss\": \"{{$json[\"count\"][0]}}\",\n \"masani\": \"{{$json[\"count\"][1]}}\",\n \"prospect\": \"{{$json[\"count\"][2]}}\"\n },\n\n\"schedule\":\n {\n \"rokoss\":\n {\n \"day1\":\n {\n \"ru\": \"{{$json[\"day_1_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_1_ua\"][0]}}\"\n },\n \"day2\":\n {\n \"ru\": \"{{$json[\"day_2_ru\"][0]}}\",\n \"ua\": \"{{$json[\"day_2_ua\"][0]}}\"\n },\n \"time\": \"{{$json[\"time\"][0]}}\",\n \"time_2\": \"{{$json[\"time_2\"][0]}}\"\n },\n\"masani\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][1]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][1]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][1]}}\"\n},\n\"time\": \"{{$json[\"time\"][1]}}\"\n},\n\"prospect\":\n{\n\"day1\":\n{\n\"ru\": \"{{$json[\"day_1_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_1_ua\"][2]}}\"\n},\n\"day2\":\n{\n\"ru\": \"{{$json[\"day_2_ru\"][2]}}\",\n\"ua\": \"{{$json[\"day_2_ua\"][2]}}\"\n},\n\"time\": \"{{$json[\"time\"][2]}}\"\n}\n}\n}",
"options": {
"responseCode": 200
}
@@ -149,7 +152,7 @@
}
},
"createdAt": "2022-04-29T07:24:59.929Z",
"updatedAt": "2022-06-23T08:32:54.866Z",
"updatedAt": "2022-07-12T11:51:32.916Z",
"settings": {
"saveExecutionProgress": "DEFAULT",
"errorWorkflow": "25"

View File

@@ -23,7 +23,7 @@
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
460,
380,
300
]
},
@@ -45,7 +45,7 @@
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
680,
560,
300
]
},
@@ -58,7 +58,7 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
900,
720,
300
]
},
@@ -95,7 +95,7 @@
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
1140,
900,
300
]
},
@@ -126,6 +126,10 @@
{
"name": "link",
"value": "=https://m.olx.ua{{$json[\"link\"]}}"
},
{
"name": "tag",
"value": "ps4_games_ch"
}
]
},
@@ -135,8 +139,8 @@
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1560,
300
1280,
320
]
},
{
@@ -154,42 +158,31 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1340,
1080,
300
]
},
{
"parameters": {
"chatId": "1684481",
"text": "={{$json[\"title\"]}}\n{{$json[\"date\"]}}\n{{$json[\"link\"]}}\n#ps4games",
"additionalFields": {}
},
"name": "Telegram",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [
2060,
340
],
"credentials": {
"telegramApi": {
"id": "31",
"name": "Telegram account"
}
}
},
{
"parameters": {
"docId": "d61nLm6Fn99jwqxd6hdT9d",
"tableId": "Ps4_games_ch",
"returnAll": true,
"additionalOptions": {}
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "tag",
"values": "ps4_games_ch"
}
]
}
}
},
"name": "Grist1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1340,
1280,
580
],
"credentials": {
@@ -209,8 +202,8 @@
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1800,
400
1480,
420
]
},
{
@@ -224,8 +217,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2060,
700
1700,
580
],
"credentials": {
"gristApi": {
@@ -233,6 +226,74 @@
"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": {}
},
"name": "HTML Extract2",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
1900,
260
]
},
{
"parameters": {
"operation": "sendPhoto",
"chatId": "1684481",
"file": "={{$json[\"image\"]}}",
"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": [
2100,
260
],
"credentials": {
"telegramApi": {
"id": "31",
"name": "Telegram account"
}
}
}
],
"connections": {
@@ -339,12 +400,34 @@
"main": [
[
{
"node": "Telegram",
"node": "Grist",
"type": "main",
"index": 0
},
{
"node": "Grist",
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "HTML Extract2",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract2": {
"main": [
[
{
"node": "Telegram2",
"type": "main",
"index": 0
}
@@ -353,7 +436,7 @@
}
},
"createdAt": "2022-05-27T16:18:47.443Z",
"updatedAt": "2022-07-07T07:07:26.219Z",
"updatedAt": "2022-07-12T18:48:12.175Z",
"settings": {
"errorWorkflow": "25"
},

View File

@@ -759,7 +759,7 @@
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
2540,
2500,
840
],
"credentials": {
@@ -798,7 +798,7 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
3280,
3220,
840
],
"credentials": {
@@ -819,7 +819,7 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2720,
2660,
840
],
"credentials": {
@@ -838,7 +838,7 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2900,
2840,
840
]
},
@@ -857,24 +857,10 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
3080,
3000,
840
]
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua/wp-content/uploads/count_banner.jpg",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
1500,
440
]
},
{
"parameters": {
"resource": "file",
@@ -888,8 +874,8 @@
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
1880,
440
2500,
460
],
"credentials": {
"sshPassword": {
@@ -927,8 +913,8 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2680,
420
3220,
460
],
"credentials": {
"facebookGraphApi": {
@@ -948,8 +934,8 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2060,
440
2660,
460
],
"credentials": {
"facebookGraphApi": {
@@ -967,8 +953,8 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2240,
440
2820,
460
]
},
{
@@ -986,52 +972,8 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
2440,
440
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "text",
"text": "вул. Рокосовського 51",
"fontSize": 56,
"positionX": 550,
"positionY": 750,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "=Залишилось\nмісць",
"fontSize": 100,
"fontColor": "#FFFFFF",
"positionY": 160,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "={{$json[\"recount\"]}}!",
"fontSize": 400,
"fontColor": "#FF0000",
"positionX": 850,
"positionY": 500,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
}
]
},
"options": {
"format": "jpeg"
}
},
"name": "Edit Image1",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
1700,
440
3000,
460
]
},
{
@@ -1047,7 +989,7 @@
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
2560,
2500,
1300
],
"credentials": {
@@ -1086,7 +1028,7 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
3300,
3220,
1300
],
"credentials": {
@@ -1107,7 +1049,7 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
2740,
2660,
1300
],
"credentials": {
@@ -1126,7 +1068,7 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
2920,
2840,
1300
]
},
@@ -1145,7 +1087,7 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
3100,
3000,
1300
]
},
@@ -1159,7 +1101,7 @@
"text": "Проспект Перемоги 39",
"fontSize": 56,
"fontColor": "#FFFFFF",
"positionX": 550,
"positionX": 530,
"positionY": 580,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
@@ -1190,7 +1132,7 @@
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2400,
2320,
1300
]
},
@@ -1347,7 +1289,7 @@
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2200,
2160,
1300
]
},
@@ -1418,7 +1360,7 @@
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
2000,
1980,
840
]
},
@@ -1471,7 +1413,7 @@
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2180,
2140,
840
]
},
@@ -1545,9 +1487,178 @@
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2380,
2320,
840
]
},
{
"parameters": {
"url": "={{$json[\"urls\"][\"full\"]}}",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request12",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1600,
460
]
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua/wp-content/uploads/logo_banner.png",
"responseFormat": "file",
"dataPropertyName": "data2",
"options": {}
},
"name": "HTTP Request13",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1780,
620
]
},
{
"parameters": {
"mode": "mergeByIndex",
"join": "inner"
},
"name": "Merge5",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1960,
460
]
},
{
"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 Image",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
1780,
460
]
},
{
"parameters": {
"operation": "composite",
"dataPropertyNameComposite": "data2",
"operator": "Plus",
"positionX": 50,
"positionY": 330,
"options": {}
},
"name": "Edit Image7",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2140,
460
]
},
{
"parameters": {
"url": "https://api.unsplash.com/photos/random?query=driving",
"options": {},
"headerParametersUi": {
"parameter": [
{
"name": "Authorization",
"value": "Client-ID SU9IXaIjfJXqKqJ1NM1zgkSjuxLVhVXICfIdWEWvUPM"
}
]
},
"queryParametersUi": {
"parameter": [
{
"name": "orientation",
"value": "landscape"
}
]
}
},
"name": "HTTP Request14",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
1440,
460
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "text",
"text": "вул. Рокосовського 51",
"fontSize": 56,
"fontColor": "#FFFFFF",
"positionX": 550,
"positionY": 580,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "=Залишилось\nмісць",
"fontSize": 100,
"fontColor": "#FFFFFF",
"positionY": 140,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
"operation": "text",
"text": "={{$node[\"recount rokoss\"].json[\"recount\"]}}!",
"fontSize": 300,
"fontColor": "#FF0000",
"positionX": 750,
"positionY": 300,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
}
]
},
"options": {
"format": "jpeg"
}
},
"name": "Edit Image10",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
2300,
460
]
}
],
"connections": {
@@ -1895,17 +2006,6 @@
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "Edit Image1",
"type": "main",
"index": 0
}
]
]
},
"SSH": {
"main": [
[
@@ -1950,17 +2050,6 @@
]
]
},
"Edit Image1": {
"main": [
[
{
"node": "SSH",
"type": "main",
"index": 0
}
]
]
},
"recount rokoss": {
"main": [
[
@@ -2053,7 +2142,7 @@
"main": [
[
{
"node": "HTTP Request",
"node": "HTTP Request14",
"type": "main",
"index": 0
}
@@ -2202,10 +2291,87 @@
}
]
]
},
"HTTP Request12": {
"main": [
[
{
"node": "Edit Image",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request13": {
"main": [
[
{
"node": "Merge5",
"type": "main",
"index": 1
}
]
]
},
"Merge5": {
"main": [
[
{
"node": "Edit Image7",
"type": "main",
"index": 0
}
]
]
},
"Edit Image": {
"main": [
[
{
"node": "Merge5",
"type": "main",
"index": 0
}
]
]
},
"Edit Image7": {
"main": [
[
{
"node": "Edit Image10",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request14": {
"main": [
[
{
"node": "HTTP Request12",
"type": "main",
"index": 0
}
]
]
},
"Edit Image10": {
"main": [
[
{
"node": "SSH",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-18T21:12:12.483Z",
"updatedAt": "2022-07-11T19:38:16.811Z",
"updatedAt": "2022-07-12T05:59:27.482Z",
"settings": {
"errorWorkflow": "25"
},

View File

@@ -125,20 +125,6 @@
980
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "date.google",
"propertyName2": "date"
},
"name": "Merge3",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
160,
520
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
@@ -282,106 +268,6 @@
}
}
},
{
"parameters": {
"graphApiVersion": "v14.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
760,
520
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1000,
520
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1260,
520
]
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "feed",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "=Розпочато запис на навчання за адресою:\n{{$node[\"rokoss1\"].json[\"address\"]}}\nПочаток занятть: {{$node[\"rokoss2\"].json[\"date_ua\"]}}"
},
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
},
{
"name": "link",
"value": "https://avtomoto25.cn.ua/booking/"
},
{
"name": "og_action_type_id",
"value": "383634835006146"
},
{
"name": "og_object_id",
"value": "387919524627259"
}
]
}
}
},
"name": "Facebook Graph API2",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1520,
520
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"extractionValues": {
@@ -438,9 +324,13 @@
"value": "={{$json[\"schedule\"][1].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
},
{
"name": "schedule.time",
"name": "schedule.time.day1",
"value": "={{$json[\"data\"][9]}}"
},
{
"name": "schedule.time.day2",
"value": "={{$json[\"data\"][10]}}"
},
{
"name": "date.google",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
@@ -485,7 +375,7 @@
},
{
"fieldId": "time",
"fieldValue": "={{$json[\"schedule\"][\"time\"]}}"
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day1\"]}}"
},
{
"fieldId": "day_1_ru",
@@ -498,6 +388,10 @@
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
},
{
"fieldId": "time_2",
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day2\"]}}"
}
]
}
@@ -516,20 +410,6 @@
}
}
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua/wp-content/uploads/new_data.jpg",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
500,
340
]
},
{
"parameters": {
"operation": "multiStep",
@@ -538,16 +418,17 @@
{
"operation": "text",
"text": "Розпочато запис на \nнавчання за адресою",
"fontSize": 36,
"fontSize": 64,
"fontColor": "#EDEDED",
"positionY": 480
"positionX": 450,
"positionY": 100
},
{
"operation": "text",
"text": "вул. Рокосовського 51",
"fontSize": 56,
"fontSize": 80,
"fontColor": "#FFFFFF",
"positionY": 580,
"positionY": 400,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
},
{
@@ -555,14 +436,14 @@
"text": "Початок занятть",
"fontSize": 36,
"fontColor": "#EDEDED",
"positionY": 660
"positionY": 520
},
{
"operation": "text",
"text": "={{$json[\"date\"][\"ua\"]}}",
"text": "={{$node[\"Merge rokoss\"].json[\"date\"][\"ua\"]}}",
"fontSize": 56,
"fontColor": "#FFFFFF",
"positionY": 720,
"positionY": 580,
"font": "/usr/share/fonts/truetype/msttcorefonts/Arial_Bold.ttf"
}
]
@@ -573,7 +454,7 @@
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
760,
1380,
340
]
},
@@ -590,7 +471,7 @@
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
1000,
1560,
340
],
"credentials": {
@@ -611,7 +492,7 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1200,
1720,
340
],
"credentials": {
@@ -630,7 +511,7 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1380,
1900,
340
]
},
@@ -649,7 +530,7 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1580,
2080,
340
]
},
@@ -682,7 +563,7 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1800,
2300,
340
],
"credentials": {
@@ -1311,6 +1192,206 @@
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"url": "={{$json[\"urls\"][\"full\"]}}",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request12",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
680,
340
]
},
{
"parameters": {
"url": "https://avtomoto25.cn.ua/wp-content/uploads/logo_banner.png",
"responseFormat": "file",
"dataPropertyName": "data2",
"options": {}
},
"name": "HTTP Request13",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
840,
500
]
},
{
"parameters": {
"operation": "composite",
"dataPropertyNameComposite": "data2",
"operator": "Plus",
"positionX": 50,
"positionY": 50,
"options": {}
},
"name": "Edit Image7",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
1200,
340
]
},
{
"parameters": {
"url": "https://api.unsplash.com/photos/random?query=schedule",
"options": {},
"headerParametersUi": {
"parameter": [
{
"name": "Authorization",
"value": "Client-ID SU9IXaIjfJXqKqJ1NM1zgkSjuxLVhVXICfIdWEWvUPM"
}
]
},
"queryParametersUi": {
"parameter": [
{
"name": "orientation",
"value": "landscape"
}
]
}
},
"name": "HTTP Request14",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
500,
340
]
},
{
"parameters": {
"mode": "mergeByIndex",
"join": "inner"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1020,
340
]
},
{
"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 Image1",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
840,
340
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "date.google",
"propertyName2": "date"
},
"name": "Merge rokoss",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
160,
520
]
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "1",
"fieldsToSend": {
"properties": [
{
"fieldId": "date_ru",
"fieldValue": "={{$json[\"date\"][\"ru\"]}}"
},
{
"fieldId": "date_ua",
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
},
{
"fieldId": "day_1_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
},
{
"fieldId": "day_2_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
},
{
"fieldId": "time",
"fieldValue": "={{$json[\"schedule\"][\"time\"][\"day1\"]}}"
},
{
"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": "rokoss",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
500,
940
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
},
"disabled": true
}
],
"connections": {
@@ -1368,32 +1449,11 @@
]
]
},
"Merge3": {
"main": [
[
{
"node": "Google Calendar",
"type": "main",
"index": 0
},
{
"node": "rokoss2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"rokoss1": {
"main": [
[
{
"node": "Merge3",
"node": "Merge rokoss",
"type": "main",
"index": 1
}
@@ -1464,39 +1524,6 @@
]
]
},
"Get Pages": {
"main": [
[
{
"node": "Split Pages",
"type": "main",
"index": 0
}
]
]
},
"Split Pages": {
"main": [
[
{
"node": "Is Tom Travels?",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?": {
"main": [
[
{
"node": "Facebook Graph API2",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract": {
"main": [
[
@@ -1512,29 +1539,7 @@
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "Edit Image",
"type": "main",
"index": 0
}
]
]
},
"Edit Image": {
"main": [
[
{
"node": "SSH",
"node": "Merge rokoss",
"type": "main",
"index": 0
}
@@ -1760,10 +1765,108 @@
}
]
]
},
"HTTP Request12": {
"main": [
[
{
"node": "Edit Image1",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request13": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Edit Image7": {
"main": [
[
{
"node": "Edit Image",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request14": {
"main": [
[
{
"node": "HTTP Request12",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "Edit Image7",
"type": "main",
"index": 0
}
]
]
},
"Edit Image1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Merge rokoss": {
"main": [
[
{
"node": "Google Calendar",
"type": "main",
"index": 0
},
{
"node": "rokoss2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request14",
"type": "main",
"index": 0
}
]
]
},
"Edit Image": {
"main": [
[
{
"node": "SSH",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-20T08:36:58.934Z",
"updatedAt": "2022-07-07T06:51:55.382Z",
"updatedAt": "2022-07-12T11:41:41.432Z",
"settings": {
"errorWorkflow": "25"
},

452
flows/47.json Normal file
View File

@@ -0,0 +1,452 @@
{
"id": 47,
"name": "olx ps4 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": [
380,
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": [
200,
640
]
},
{
"parameters": {
"values": {
"string": [
{
"name": "link",
"value": "=https://m.olx.ua{{$json[\"link\"]}}"
},
{
"name": "tag",
"value": "ps4_forbidden_west"
}
]
},
"options": {}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1280,
320
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"title\"]}}",
"operation": "isNotEmpty"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1080,
300
]
},
{
"parameters": {
"docId": "d61nLm6Fn99jwqxd6hdT9d",
"tableId": "Ps4_games_ch",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "tag",
"values": "ps4_forbidden_west"
}
]
}
}
},
"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": {}
},
"name": "HTML Extract2",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
1900,
260
]
},
{
"parameters": {
"operation": "sendPhoto",
"chatId": "1684481",
"file": "={{$json[\"image\"]}}",
"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": [
2100,
260
],
"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": "Telegram2",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-07-12T18:37:41.482Z",
"updatedAt": "2022-07-12T18:47:09.093Z",
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"tags": [
{
"id": "3",
"name": "olx",
"createdAt": "2022-06-21T19:20:51.822Z",
"updatedAt": "2022-06-21T19:20:51.822Z"
}
]
}