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

@@ -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"
},