Auto backup (2022-07-04T21:00:50.815Z)

This commit is contained in:
nia
2022-07-04 21:00:50 +00:00
parent bffd0838e3
commit b7df05c4c6
7 changed files with 435 additions and 11 deletions

View File

@@ -192,7 +192,11 @@
},
{
"name": "days_to_dead",
"value": "={{$today.diff(DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]), 'days').toObject().days.toString().substring(1, 2)}}"
"value": "={{$today.minus({days: 1}).diff(DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]), 'days').toObject().days.toString().substring(1, 2)}}"
},
{
"name": "date",
"value": "={{DateTime.fromISO($json[\"dueDateTime\"][\"dateTime\"]).plus({days: 1}).setLocale('ru').toFormat('dd MMMM yyyy года')}}"
}
]
},
@@ -233,6 +237,10 @@
{
"name": "days_gone",
"value": "={{$json[\"days_to_dead\"]}}"
},
{
"name": "date",
"value": "={{$json[\"date\"]}}"
}
]
}
@@ -249,7 +257,8 @@
"id": "27",
"name": "Mailjet Email account"
}
}
},
"disabled": true
}
],
"connections": {
@@ -315,7 +324,7 @@
}
},
"createdAt": "2022-05-11T17:19:39.626Z",
"updatedAt": "2022-06-27T05:25:22.228Z",
"updatedAt": "2022-07-04T06:16:14.220Z",
"settings": {
"errorWorkflow": "25"
},

51
flows/43.json Normal file
View File

@@ -0,0 +1,51 @@
{
"id": 43,
"name": "My workflow 2",
"active": false,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
240,
300
]
},
{
"parameters": {
"appId": "519937075716248",
"object": "page",
"fields": [
"*"
],
"options": {}
},
"name": "Facebook Trigger",
"type": "n8n-nodes-base.facebookTrigger",
"typeVersion": 1,
"position": [
460,
300
],
"webhookId": "5688ce20-6bb6-4fd0-82c2-5fce24bed3d3",
"credentials": {
"facebookGraphAppApi": {
"id": "37",
"name": "Facebook Graph (App) account"
}
}
}
],
"connections": {},
"createdAt": "2022-07-04T18:06:32.398Z",
"updatedAt": "2022-07-04T18:16:28.601Z",
"settings": {},
"staticData": {
"node:Facebook Trigger": {
"verifyToken": "ef26c7dd-2a58-4bac-a16c-d7e1f8ba82c1"
}
},
"tags": []
}

364
flows/44.json Normal file
View File

@@ -0,0 +1,364 @@
{
"id": 44,
"name": "olx horizon",
"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/q-horizon-forbidden-west/?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": [
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": "Velo_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": "Velo_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": [
[]
]
},
"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-07-04T18:17:30.835Z",
"updatedAt": "2022-07-04T18:18:12.662Z",
"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"
}
]
}