Auto backup (2022-06-21T21:00:40.676Z)

This commit is contained in:
nia
2022-06-21 21:00:40 +00:00
parent 742ac04a51
commit e238009ce1
24 changed files with 2428 additions and 382 deletions

View File

@@ -156,7 +156,7 @@
}
},
"createdAt": "2022-04-20T08:33:49.423Z",
"updatedAt": "2022-06-01T05:33:39.773Z",
"updatedAt": "2022-06-21T03:17:43.768Z",
"settings": {},
"staticData": null,
"tags": []

View File

@@ -1,7 +1,7 @@
{
"id": 10,
"name": "OpenData to Mattermost",
"active": true,
"active": false,
"nodes": [
{
"parameters": {},
@@ -271,11 +271,11 @@
}
},
"createdAt": "2022-04-29T05:12:17.339Z",
"updatedAt": "2022-06-18T20:03:35.408Z",
"updatedAt": "2022-06-21T03:19:36.730Z",
"settings": {},
"staticData": {
"node:IMAP Email": {
"lastMessageUid": 6332
"lastMessageUid": 6335
}
},
"tags": []

View File

@@ -78,56 +78,6 @@
],
"disabled": true
},
{
"parameters": {
"operation": "update",
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
"eventId": "397fskc0hc9vfl1dqffnbjlm7k",
"updateFields": {
"allday": "yes",
"end": "={{$json[\"date\"]}} 23:00:00",
"start": "={{$json[\"date\"]}} 01:00:00"
}
},
"name": "Google Calendar2",
"type": "n8n-nodes-base.googleCalendar",
"typeVersion": 1,
"position": [
1460,
820
],
"credentials": {
"googleCalendarOAuth2Api": {
"id": "6",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"operation": "update",
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
"eventId": "31g2bcqsnqavh7e5deusa8b2oq\t",
"updateFields": {
"allday": "yes",
"end": "={{$json[\"date\"]}} 23:00:00",
"start": "={{$json[\"date\"]}} 01:00:00"
}
},
"name": "Google Calendar",
"type": "n8n-nodes-base.googleCalendar",
"typeVersion": 1,
"position": [
1440,
640
],
"credentials": {
"googleCalendarOAuth2Api": {
"id": "6",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"operation": "update",
@@ -201,38 +151,6 @@
],
"disabled": true
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"date\"]}}",
"operation": "notEqual",
"value2": "={{$json[\"start\"][\"date\"]}}"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1220,
840
]
},
{
"parameters": {
"mode": "mergeByIndex"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
940,
840
]
},
{
"parameters": {
"resource": "file",
@@ -289,38 +207,6 @@
1040
]
},
{
"parameters": {
"mode": "mergeByIndex"
},
"name": "Merge2",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
940,
660
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"date\"]}}",
"operation": "notEqual",
"value2": "={{$json[\"start\"][\"date\"]}}"
}
]
}
},
"name": "IF2",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1220,
660
]
},
{
"parameters": {
"path": "scool",
@@ -441,48 +327,6 @@
}
}
},
{
"parameters": {
"operation": "get",
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
"eventId": "31g2bcqsnqavh7e5deusa8b2oq\t",
"options": {}
},
"name": "вул. Рокосовського 51",
"type": "n8n-nodes-base.googleCalendar",
"typeVersion": 1,
"position": [
660,
720
],
"credentials": {
"googleCalendarOAuth2Api": {
"id": "6",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"operation": "get",
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
"eventId": "397fskc0hc9vfl1dqffnbjlm7k",
"options": {}
},
"name": "вул. Красносільского 59а",
"type": "n8n-nodes-base.googleCalendar",
"typeVersion": 1,
"position": [
660,
900
],
"credentials": {
"googleCalendarOAuth2Api": {
"id": "6",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"url": "https://note.cynic.club/shares/sJeGN4mi8Xgto8A85QS027",
@@ -536,14 +380,6 @@
"name": "date.ru",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
},
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
},
{
"name": "date.google",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
},
{
"name": "schedule.ua.day1",
"value": "={{$json[\"schedule\"][0]}}"
@@ -606,8 +442,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
-520,
1300
-500,
1280
],
"credentials": {
"gristApi": {
@@ -694,14 +530,6 @@
"name": "date.ru",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
},
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
},
{
"name": "date.google",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
},
{
"name": "schedule.ua.day1",
"value": "={{$json[\"schedule\"][0]}}"
@@ -793,10 +621,6 @@
"name": "count",
"value": "={{$json[\"data\"][1]}}"
},
{
"name": "date.google",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
},
{
"name": "schedule.ua.day1",
"value": "={{$json[\"schedule\"][0]}}"
@@ -874,8 +698,8 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
-220,
1300
-280,
1280
]
},
{
@@ -890,8 +714,8 @@
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1,
"position": [
100,
1300
200,
1280
]
},
{
@@ -910,10 +734,6 @@
"fieldId": "date_ua",
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
},
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
},
{
"fieldId": "day_1_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
@@ -922,10 +742,6 @@
"fieldId": "day_2_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
},
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
},
{
"fieldId": "time",
"fieldValue": "={{$json[\"schedule\"][\"time\"]}}"
@@ -971,10 +787,6 @@
"fieldId": "date_ua",
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
},
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
},
{
"fieldId": "day_1_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
@@ -983,10 +795,6 @@
"fieldId": "day_2_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
},
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
},
{
"fieldId": "time",
"fieldValue": "={{$json[\"schedule\"][\"time\"]}}"
@@ -1032,10 +840,6 @@
"fieldId": "date_ua",
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
},
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
},
{
"fieldId": "day_1_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
@@ -1148,28 +952,6 @@
]
]
},
"Merge": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "Google Calendar2",
"type": "main",
"index": 0
}
]
]
},
"Edit Image": {
"main": [
[
@@ -1203,28 +985,6 @@
]
]
},
"IF2": {
"main": [
[
{
"node": "Google Calendar",
"type": "main",
"index": 0
}
]
]
},
"Merge2": {
"main": [
[
{
"node": "IF2",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
@@ -1247,28 +1007,6 @@
]
]
},
"вул. Рокосовського 51": {
"main": [
[
{
"node": "Merge2",
"type": "main",
"index": 1
}
]
]
},
"вул. Красносільского 59а": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"HTTP Request2": {
"main": [
[
@@ -1390,54 +1128,6 @@
]
]
},
"rokoss": {
"main": [
[
{
"node": "вул. Рокосовського 51",
"type": "main",
"index": 0
},
{
"node": "Merge2",
"type": "main",
"index": 0
}
]
]
},
"masani": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
},
{
"node": "вул. Красносільского 59а",
"type": "main",
"index": 0
}
]
]
},
"prospect": {
"main": [
[
{
"node": "Проспект Перемоги 39",
"type": "main",
"index": 0
},
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"Cron": {
"main": [
[
@@ -1461,7 +1151,7 @@
}
},
"createdAt": "2022-04-29T07:24:59.929Z",
"updatedAt": "2022-06-10T05:08:09.248Z",
"updatedAt": "2022-06-21T03:20:52.797Z",
"settings": {
"saveExecutionProgress": "DEFAULT",
"errorWorkflow": "25"

View File

@@ -201,7 +201,7 @@
}
},
"createdAt": "2022-04-30T16:57:58.520Z",
"updatedAt": "2022-06-10T16:23:37.149Z",
"updatedAt": "2022-06-21T03:20:25.679Z",
"settings": {
"saveExecutionProgress": "DEFAULT",
"errorWorkflow": "25"

View File

@@ -1,6 +1,6 @@
{
"id": 14,
"name": "avtmoto_cf",
"name": "avtmoto25 cf",
"active": true,
"nodes": [
{
@@ -455,7 +455,7 @@
}
},
"createdAt": "2022-04-30T16:57:58.523Z",
"updatedAt": "2022-06-01T05:25:19.778Z",
"updatedAt": "2022-06-21T03:20:47.899Z",
"settings": {},
"staticData": null,
"tags": [

View File

@@ -130,7 +130,7 @@
}
},
"createdAt": "2022-05-10T18:18:51.319Z",
"updatedAt": "2022-06-01T05:25:24.346Z",
"updatedAt": "2022-06-21T03:20:55.092Z",
"settings": {
"saveExecutionProgress": "DEFAULT",
"errorWorkflow": "25"

View File

@@ -199,7 +199,7 @@
}
},
"createdAt": "2022-05-11T17:19:39.626Z",
"updatedAt": "2022-06-15T05:04:22.990Z",
"updatedAt": "2022-06-21T03:20:18.230Z",
"settings": {},
"staticData": null,
"tags": []

View File

@@ -188,7 +188,7 @@
}
},
"createdAt": "2022-05-15T05:24:23.872Z",
"updatedAt": "2022-06-01T05:25:29.423Z",
"updatedAt": "2022-06-21T03:20:40.081Z",
"settings": {},
"staticData": null,
"tags": [

View File

@@ -57,7 +57,7 @@
}
},
"createdAt": "2022-05-26T13:39:26.688Z",
"updatedAt": "2022-06-01T04:28:38.416Z",
"updatedAt": "2022-06-21T03:21:02.319Z",
"settings": {
"saveExecutionProgress": "DEFAULT",
"errorWorkflow": "25"

View File

@@ -295,7 +295,7 @@
}
},
"createdAt": "2022-05-26T17:20:27.486Z",
"updatedAt": "2022-06-01T05:25:27.192Z",
"updatedAt": "2022-06-21T03:20:20.469Z",
"settings": {
"errorWorkflow": "25"
},

View File

@@ -1,6 +1,6 @@
{
"id": 27,
"name": "olx",
"name": "olx ps4game",
"active": true,
"nodes": [
{
@@ -115,7 +115,7 @@
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
220,
200,
640
]
},
@@ -125,7 +125,7 @@
"string": [
{
"name": "link",
"value": "=https://olx.ua{{$json[\"link\"]}}"
"value": "=https://m.olx.ua{{$json[\"link\"]}}"
}
]
},
@@ -353,7 +353,7 @@
}
},
"createdAt": "2022-05-27T16:18:47.443Z",
"updatedAt": "2022-06-15T04:25:24.533Z",
"updatedAt": "2022-06-21T19:21:03.297Z",
"settings": {
"errorWorkflow": "25"
},
@@ -443,5 +443,12 @@
]
}
},
"tags": []
"tags": [
{
"id": "3",
"name": "olx",
"createdAt": "2022-06-21T19:20:51.822Z",
"updatedAt": "2022-06-21T19:20:51.822Z"
}
]
}

View File

@@ -185,7 +185,7 @@
}
},
"createdAt": "2022-05-30T05:02:38.795Z",
"updatedAt": "2022-06-01T05:25:32.122Z",
"updatedAt": "2022-06-21T03:20:12.113Z",
"settings": {},
"staticData": null,
"tags": []

View File

@@ -125,7 +125,7 @@
}
},
"createdAt": "2022-06-15T06:06:51.257Z",
"updatedAt": "2022-06-15T07:55:13.751Z",
"updatedAt": "2022-06-21T03:20:36.367Z",
"settings": {
"errorWorkflow": "25"
},

View File

@@ -1,7 +1,7 @@
{
"id": 35,
"name": "avtomoto review",
"active": false,
"name": "avtomoto25 review",
"active": true,
"nodes": [
{
"parameters": {},
@@ -9,8 +9,8 @@
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
80,
360
-480,
440
]
},
{
@@ -23,7 +23,7 @@
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
460,
260,
300
]
},
@@ -47,7 +47,7 @@
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
680,
520,
300
]
},
@@ -60,7 +60,7 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
900,
760,
300
]
},
@@ -82,6 +82,10 @@
{
"key": "content",
"cssSelector": "div.mrp-comment.mrp"
},
{
"key": "date",
"cssSelector": "div.entry-date.mrp"
}
]
},
@@ -91,7 +95,7 @@
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
1140,
980,
300
]
},
@@ -110,7 +114,371 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1340,
1180,
300
]
},
{
"parameters": {
"node": "Avtomoto25",
"options": {
"fields": {
"field": [
{
"name": "access_token"
}
]
}
}
},
"name": "Facebook Graph API",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1220,
780
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"httpRequestMethod": "POST",
"node": "Avtomoto25/feed/",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "Hello fans"
},
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
}
]
}
}
},
"name": "Facebook Graph API1",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1440,
780
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
220,
740
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
500,
740
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
740,
740
]
},
{
"parameters": {
"httpRequestMethod": "POST",
"node": "={{$json[\"id\"]}}",
"edge": "feed",
"options": {
"queryParameters": {
"parameter": [
{
"name": "message",
"value": "Розпочато запис на навчання за адресою: м. Чернігів вул. Рокосовського 51 Початок занятть: 20 липня 2022 року"
},
{
"name": "access_token",
"value": "={{$json[\"access_token\"]}}"
},
{
"name": "link",
"value": "https://avtomoto25.cn.ua/booking/"
}
]
}
}
},
"name": "Facebook Graph API2",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
960,
740
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
},
"disabled": true
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"additionalOptions": {}
},
"name": "rokoss1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
220,
900
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyX",
"value": 10,
"unit": "minutes"
}
]
}
},
"name": "Cron1",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
-60,
900
],
"disabled": true
},
{
"parameters": {
"value1": "={{$json[\"id\"]}}",
"rules": {
"rules": [
{
"operation": "equal",
"value2": 1
},
{
"operation": "equal",
"value2": 2,
"output": 1
},
{
"operation": "equal",
"value2": 3,
"output": 2
}
]
},
"fallbackOutput": 3
},
"name": "Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 1,
"position": [
440,
900
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "count",
"propertyName2": "count"
},
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
860,
960
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "вул. Рокосовського 51"
}
]
}
}
},
"name": "rokoss2",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
440,
1100
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "content",
"propertyName2": "content"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1460,
300
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Reviews",
"additionalOptions": {}
},
"name": "rokoss5",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1680,
560
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Reviews",
"returnAll": true,
"additionalOptions": {}
},
"name": "review",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1180,
500
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"operation": "create",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Reviews",
"dataToSend": "autoMapInputs"
},
"name": "review1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1680,
300
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyX",
"value": 10,
"unit": "minutes"
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
-40,
300
]
}
@@ -160,7 +528,128 @@
]
]
},
"Start": {
"Facebook Graph API": {
"main": [
[
{
"node": "Facebook Graph API1",
"type": "main",
"index": 0
}
]
]
},
"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
}
]
]
},
"Cron1": {
"main": [
[
{
"node": "rokoss1",
"type": "main",
"index": 0
}
]
]
},
"rokoss1": {
"main": [
[
{
"node": "Switch",
"type": "main",
"index": 0
}
]
]
},
"rokoss2": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
]
]
},
"Switch": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "review1",
"type": "main",
"index": 0
}
]
]
},
"review": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Cron": {
"main": [
[
{
@@ -173,7 +662,7 @@
}
},
"createdAt": "2022-06-18T18:03:07.218Z",
"updatedAt": "2022-06-18T18:19:53.389Z",
"updatedAt": "2022-06-21T07:23:53.224Z",
"settings": {
"errorWorkflow": "25"
},

View File

@@ -1,7 +1,7 @@
{
"id": 36,
"name": "avtomoto FB",
"active": false,
"name": "avtomoto25 count",
"active": true,
"nodes": [
{
"parameters": {},
@@ -15,6 +15,7 @@
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "Avtomoto25",
"options": {
"fields": {
@@ -43,6 +44,7 @@
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "Avtomoto25/feed/",
"options": {
"queryParameters": {
@@ -75,6 +77,7 @@
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
@@ -83,8 +86,8 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
-40,
280
1240,
500
],
"credentials": {
"facebookGraphApi": {
@@ -102,8 +105,8 @@
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
160,
280
1480,
500
]
},
{
@@ -121,13 +124,14 @@
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
400,
280
1700,
500
]
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "={{$json[\"id\"]}}",
"edge": "feed",
"options": {
@@ -135,7 +139,7 @@
"parameter": [
{
"name": "message",
"value": "Розпочато запис на навчання за адресою: м. Чернігів вул. Рокосовського 51 Початок занятть: 20 липня 2022 року"
"value": "=Продовжується запис на навчання за адресою: \n{{$node[\"rokoss1\"].json[\"address\"]}}\nПочаток занятть: {{$node[\"rokoss1\"].json[\"date_ua\"]}}\nЗалишилося місць: {{$node[\"recount rokoss\"].json[\"recount\"]}}"
},
{
"name": "access_token",
@@ -153,7 +157,563 @@
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
740,
2140,
320
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"url": "https://note.cynic.club/shares/sJeGN4mi8Xgto8A85QS027",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request2",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
0,
500
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract1",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
220,
500
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "Set2",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
480,
500
]
},
{
"parameters": {
"url": "https://note.cynic.club/shares/wjFwc3x9h7lDRK9BlubQC0",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request3",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
0,
840
]
},
{
"parameters": {
"url": "https://note.cynic.club/shares/978uO9kCnw65J1TMaH0XeR",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request4",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
0,
1400
],
"disabled": true
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
},
{
"key": "schedule",
"cssSelector": "label.checkbox-label-checked",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract3",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
220,
1400
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "date.ua",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('uk').toFormat('dd MMMM yyyy року')}}"
},
{
"name": "date.ru",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").setLocale('ru').toFormat('dd MMMM yyyy года')}}"
},
{
"name": "count",
"value": "={{$json[\"data\"][1]}}"
},
{
"name": "date.google",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
},
{
"name": "schedule.ua.day1",
"value": "={{$json[\"schedule\"][0]}}"
},
{
"name": "schedule.ua.day2",
"value": "={{$json[\"schedule\"][1]}}"
},
{
"name": "schedule.ru.day1",
"value": "={{$json[\"schedule\"][0].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
},
{
"name": "schedule.ru.day2",
"value": "={{$json[\"schedule\"][1].replace(\"понеділок\", \"понедельник\").replace(\"вівторок\", \"вторник\").replace(\"середа\", \"среда\").replace(\"четвер\", \"четверг\").replace(\"п’ятниця\", \"пятница\").replace(\"субота\", \"суббота\").replace(\"неділя\", \"воскресенье\")}}"
},
{
"name": "schedule.time",
"value": "={{$json[\"data\"][9]}}"
}
]
},
"options": {
"dotNotation": true
}
},
"name": "Set4",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
480,
1400
]
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "3",
"fieldsToSend": {
"properties": [
{
"fieldId": "date_ru",
"fieldValue": "={{$json[\"date\"][\"ru\"]}}"
},
{
"fieldId": "date_ua",
"fieldValue": "={{$json[\"date\"][\"ua\"]}}"
},
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"][\"google\"]}}"
},
{
"fieldId": "day_1_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day1\"]}}"
},
{
"fieldId": "day_2_ua",
"fieldValue": "={{$json[\"schedule\"][\"ua\"][\"day2\"]}}"
},
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
},
{
"fieldId": "time",
"fieldValue": "={{$json[\"schedule\"][\"time\"]}}"
},
{
"fieldId": "day_1_ru",
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day1\"]}}"
},
{
"fieldId": "day_2_ru",
"fieldValue": "={{$json[\"schedule\"][\"ru\"][\"day2\"]}}"
}
]
}
},
"name": "prospect",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
700,
1400
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyX",
"value": 10,
"unit": "minutes"
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
-340,
740
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "count",
"propertyName2": "count"
},
"name": "Merge3",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
780,
520
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "вул. Рокосовського 51"
}
]
}
}
},
"name": "rokoss1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
480,
660
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "1",
"fieldsToSend": {
"properties": [
{
"fieldId": "count",
"fieldValue": "={{$json[\"count\"]}}"
}
]
}
},
"name": "rokoss2",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1040,
680
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"values": {
"number": [
{
"name": "recount",
"value": "={{22 - $json[\"count\"]}}"
}
]
},
"options": {}
},
"name": "recount rokoss",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
500
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
220,
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": {
"values": {
"number": [
{
"name": "recount",
"value": "={{22 - $json[\"count\"]}}"
}
]
},
"options": {}
},
"name": "recount rokoss1",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
860
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "Красносільського 59а"
}
]
}
}
},
"name": "masani1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
480,
1000
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"graphApiVersion": "v13.0",
"node": "me",
"edge": "accounts",
"options": {}
},
"name": "Get Pages1",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
160,
280
],
"credentials": {
"facebookGraphApi": {
"id": "36",
"name": "Facebook Graph account"
}
}
},
{
"parameters": {
"fieldToSplitOut": "data",
"options": {}
},
"name": "Split Pages1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
400,
280
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"id\"]}}",
"value2": "105101524930750"
}
]
}
},
"name": "Is Tom Travels?1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
620,
280
]
},
{
"parameters": {
"httpRequestMethod": "POST",
"graphApiVersion": "v13.0",
"node": "=336184934610406",
"edge": "events",
"options": {
"queryParametersJson": "{\n \"description\": \"Запис на навчання за адресою\\nм. Чернігів Проспект Перемоги 39\",\n \"end_time\": \"2022-07-20T09:15:00+0300\",\n \"name\": \"Найближча дата почтатку занять\",\n \"place\": {\n \"name\": \"м. Чернігів Проспект Перемоги 39\"\n },\n \"start_time\": \"2022-07-20T09:00:00+0300\",\n \"id\": \"336184934610406\"\n },"
}
},
"name": "Facebook Graph API3",
"type": "n8n-nodes-base.facebookGraphApi",
"typeVersion": 1,
"position": [
1020,
280
],
"credentials": {
@@ -165,17 +725,6 @@
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "Get Pages",
"type": "main",
"index": 0
}
]
]
},
"Facebook Graph API": {
"main": [
[
@@ -219,11 +768,231 @@
}
]
]
},
"HTTP Request2": {
"main": [
[
{
"node": "HTML Extract1",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract1": {
"main": [
[
{
"node": "Set2",
"type": "main",
"index": 0
}
]
]
},
"Set2": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request3": {
"main": [
[
{
"node": "HTML Extract",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request4": {
"main": [
[
{
"node": "HTML Extract3",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract3": {
"main": [
[
{
"node": "Set4",
"type": "main",
"index": 0
}
]
]
},
"Set4": {
"main": [
[
{
"node": "prospect",
"type": "main",
"index": 0
}
]
]
},
"Cron": {
"main": [
[
{
"node": "HTTP Request2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request3",
"type": "main",
"index": 0
}
]
]
},
"Merge3": {
"main": [
[
{
"node": "rokoss2",
"type": "main",
"index": 0
},
{
"node": "recount rokoss",
"type": "main",
"index": 0
}
]
]
},
"rokoss1": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 1
}
]
]
},
"recount rokoss": {
"main": [
[
{
"node": "Get Pages",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract": {
"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 rokoss1",
"type": "main",
"index": 0
}
]
]
},
"masani1": {
"main": [
[
{
"node": "Merge4",
"type": "main",
"index": 1
}
]
]
},
"Get Pages1": {
"main": [
[
{
"node": "Split Pages1",
"type": "main",
"index": 0
}
]
]
},
"Split Pages1": {
"main": [
[
{
"node": "Is Tom Travels?1",
"type": "main",
"index": 0
}
]
]
},
"Is Tom Travels?1": {
"main": [
[
{
"node": "Facebook Graph API3",
"type": "main",
"index": 0
}
]
]
},
"Start": {
"main": [
[]
]
}
},
"createdAt": "2022-06-18T21:12:12.483Z",
"updatedAt": "2022-06-19T17:43:50.998Z",
"settings": {},
"updatedAt": "2022-06-21T09:50:10.844Z",
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"tags": [
{

721
flows/37.json Normal file
View File

@@ -0,0 +1,721 @@
{
"id": 37,
"name": "avtomoto25 new date",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-960,
1200
]
},
{
"parameters": {
"operation": "update",
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
"eventId": "31g2bcqsnqavh7e5deusa8b2oq\t",
"updateFields": {
"allday": "yes",
"end": "= {{$json[\"date\"]}} 23:00:00",
"start": "= {{$json[\"date\"]}} 01:00:00"
}
},
"name": "Google Calendar",
"type": "n8n-nodes-base.googleCalendar",
"typeVersion": 1,
"position": [
500,
660
],
"credentials": {
"googleCalendarOAuth2Api": {
"id": "6",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"operation": "update",
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
"eventId": "3ptu0erou5f816kglu1f2p0p28",
"updateFields": {
"allday": "yes",
"end": "={{$json[\"date\"]}} 23:00:00",
"start": "={{$json[\"date\"]}} 01:00:00"
}
},
"name": "Google Calendar3",
"type": "n8n-nodes-base.googleCalendar",
"typeVersion": 1,
"position": [
520,
1360
],
"credentials": {
"googleCalendarOAuth2Api": {
"id": "6",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"url": "https://note.cynic.club/shares/sJeGN4mi8Xgto8A85QS027",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request2",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
-500,
640
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract1",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
-280,
640
]
},
{
"parameters": {
"url": "https://note.cynic.club/shares/wjFwc3x9h7lDRK9BlubQC0",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request3",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
-520,
980
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract2",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
-280,
980
]
},
{
"parameters": {
"url": "https://note.cynic.club/shares/978uO9kCnw65J1TMaH0XeR",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request4",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
-500,
1340
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "data",
"cssSelector": "li",
"returnArray": true
},
{
"key": "schedule",
"cssSelector": "label.checkbox-label-checked",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract3",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
-280,
1340
]
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyX",
"value": 10,
"unit": "minutes"
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
-960,
760
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "date",
"propertyName2": "date"
},
"name": "Merge3",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
260,
660
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "вул. Рокосовського 51"
}
]
}
}
},
"name": "rokoss1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
-20,
800
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "date",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
}
]
},
"options": {}
},
"name": "Set rokoss",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
-20,
640
]
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "1",
"fieldsToSend": {
"properties": [
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"]}}"
}
]
}
},
"name": "rokoss",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
500,
800
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "date",
"propertyName2": "date"
},
"name": "Merge4",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
260,
1000
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "date",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
}
]
},
"options": {}
},
"name": "Set masani",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
-20,
980
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "Красносільського 59а"
}
]
}
}
},
"name": "masani2",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
-20,
1160
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"operation": "update",
"calendar": "hvttbe9pijtp5c3iqiaj1rfvps%40group.calendar.google.com",
"eventId": "397fskc0hc9vfl1dqffnbjlm7k",
"updateFields": {
"allday": "yes",
"end": "={{$json[\"date\"]}} 23:00:00",
"start": "={{$json[\"date\"]}} 01:00:00"
}
},
"name": "Google Calendar4",
"type": "n8n-nodes-base.googleCalendar",
"typeVersion": 1,
"position": [
500,
1000
],
"credentials": {
"googleCalendarOAuth2Api": {
"id": "6",
"name": "Google Calendar account"
}
}
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "2",
"fieldsToSend": {
"properties": [
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"]}}"
}
]
}
},
"name": "masani1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
500,
1160
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "date",
"value": "={{DateTime.fromFormat($json[\"data\"][0], \"dd.MM.yyyy\").toISODate()}}"
}
]
},
"options": {}
},
"name": "Set prospect",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
-20,
1340
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "date",
"propertyName2": "date"
},
"name": "Merge5",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
300,
1360
]
},
{
"parameters": {
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "address",
"values": "Проспект Перемоги 39"
}
]
}
}
},
"name": "prospect",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
-20,
1500
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"operation": "update",
"docId": "tAuWNMisjXqyEkYudRcA2c",
"tableId": "Classrooms",
"rowId": "3",
"fieldsToSend": {
"properties": [
{
"fieldId": "date",
"fieldValue": "={{$json[\"date\"]}}"
}
]
}
},
"name": "prospect1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
520,
1540
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
}
],
"connections": {
"HTTP Request2": {
"main": [
[
{
"node": "HTML Extract1",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract1": {
"main": [
[
{
"node": "Set rokoss",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request3": {
"main": [
[
{
"node": "HTML Extract2",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract2": {
"main": [
[
{
"node": "Set masani",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request4": {
"main": [
[
{
"node": "HTML Extract3",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract3": {
"main": [
[
{
"node": "Set prospect",
"type": "main",
"index": 0
}
]
]
},
"Cron": {
"main": [
[
{
"node": "HTTP Request2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request3",
"type": "main",
"index": 0
},
{
"node": "HTTP Request4",
"type": "main",
"index": 0
}
]
]
},
"Merge3": {
"main": [
[
{
"node": "rokoss",
"type": "main",
"index": 0
},
{
"node": "Google Calendar",
"type": "main",
"index": 0
}
]
]
},
"rokoss1": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 1
}
]
]
},
"Set rokoss": {
"main": [
[
{
"node": "Merge3",
"type": "main",
"index": 0
}
]
]
},
"Set masani": {
"main": [
[
{
"node": "Merge4",
"type": "main",
"index": 0
}
]
]
},
"masani2": {
"main": [
[
{
"node": "Merge4",
"type": "main",
"index": 1
}
]
]
},
"Merge4": {
"main": [
[
{
"node": "Google Calendar4",
"type": "main",
"index": 0
},
{
"node": "masani1",
"type": "main",
"index": 0
}
]
]
},
"Set prospect": {
"main": [
[
{
"node": "Merge5",
"type": "main",
"index": 0
}
]
]
},
"Merge5": {
"main": [
[
{
"node": "Google Calendar3",
"type": "main",
"index": 0
},
{
"node": "prospect1",
"type": "main",
"index": 0
}
]
]
},
"prospect": {
"main": [
[
{
"node": "Merge5",
"type": "main",
"index": 1
}
]
]
}
},
"createdAt": "2022-06-20T08:36:58.934Z",
"updatedAt": "2022-06-21T03:20:44.049Z",
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"tags": [
{
"id": "1",
"name": "avtomoto25",
"createdAt": "2022-05-10T18:06:30.022Z",
"updatedAt": "2022-05-10T18:06:30.022Z"
}
]
}

370
flows/38.json Normal file
View File

@@ -0,0 +1,370 @@
{
"id": 38,
"name": "olx velo",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
180,
300
]
},
{
"parameters": {
"url": "https://www.olx.ua/d/chernigov/q-%D0%92%D0%B5%D0%BB%D0%BE%D1%81%D0%B8%D0%BF%D0%B5%D0%B4/?search%5Border%5D=created_at:desc&search%5Bfilter_float_price:from%5D=8000&last_seen_id=752562462",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
460,
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": [
680,
300
]
},
{
"parameters": {
"fieldToSplitOut": "items",
"options": {}
},
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
900,
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": [
1140,
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\"]}}"
}
]
},
"options": {}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1560,
300
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"title\"]}}",
"operation": "isNotEmpty"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1340,
300
]
},
{
"parameters": {
"chatId": "1684481",
"text": "={{$json[\"title\"]}}\n{{$json[\"date\"]}}\n{{$json[\"link\"]}}\n#velo",
"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": {}
},
"name": "Grist1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1340,
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": [
1820,
560
]
},
{
"parameters": {
"operation": "create",
"docId": "d61nLm6Fn99jwqxd6hdT9d",
"tableId": "Ps4_games_ch",
"dataToSend": "autoMapInputs"
},
"name": "Grist",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2060,
700
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist 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": "Telegram",
"type": "main",
"index": 0
},
{
"node": "Grist",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-06-21T19:14:34.282Z",
"updatedAt": "2022-06-21T19:20:54.032Z",
"settings": {
"errorWorkflow": "25",
"saveExecutionProgress": "DEFAULT"
},
"staticData": null,
"tags": [
{
"id": "3",
"name": "olx",
"createdAt": "2022-06-21T19:20:51.822Z",
"updatedAt": "2022-06-21T19:20:51.822Z"
}
]
}

View File

@@ -202,7 +202,7 @@
}
},
"createdAt": "2022-04-24T08:26:47.162Z",
"updatedAt": "2022-06-01T05:26:06.376Z",
"updatedAt": "2022-06-21T03:17:46.539Z",
"settings": {},
"staticData": null,
"tags": []

View File

@@ -876,7 +876,7 @@
}
},
"createdAt": "2022-04-25T10:23:57.085Z",
"updatedAt": "2022-06-08T07:27:40.787Z",
"updatedAt": "2022-06-21T03:17:39.931Z",
"settings": {},
"staticData": null,
"tags": []