Auto backup (2022-07-18T21:00:57.116Z)

This commit is contained in:
nia
2022-07-18 21:00:57 +00:00
parent a76c2b4b95
commit b0d338c6ca
9 changed files with 703 additions and 34 deletions

View File

@@ -1,7 +1,7 @@
{
"id": 27,
"name": "olx ps4game che",
"active": true,
"active": false,
"nodes": [
{
"parameters": {},
@@ -192,7 +192,7 @@
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1500,
1540,
300
]
},
@@ -552,7 +552,7 @@
}
},
"createdAt": "2022-05-27T16:18:47.443Z",
"updatedAt": "2022-07-17T08:43:44.330Z",
"updatedAt": "2022-07-18T19:42:20.524Z",
"settings": {
"errorWorkflow": "25"
},

View File

@@ -1,6 +1,6 @@
{
"id": 28,
"name": "currncy",
"name": "curency",
"active": true,
"nodes": [
{
@@ -307,11 +307,6 @@
]
]
},
"Grist": {
"main": [
[]
]
},
"Merge": {
"main": [
[
@@ -325,7 +320,7 @@
}
},
"createdAt": "2022-05-30T05:02:38.795Z",
"updatedAt": "2022-07-17T09:22:06.673Z",
"updatedAt": "2022-07-18T19:42:32.298Z",
"settings": {},
"staticData": null,
"tags": [

View File

@@ -61,7 +61,7 @@
"name": "Respond to Webhook1",
"type": "n8n-nodes-base.respondToWebhook",
"position": [
1180,
1420,
320
],
"typeVersion": 1
@@ -88,22 +88,36 @@
"name": "Prepare Response1",
"type": "n8n-nodes-base.function",
"position": [
1000,
1220,
320
],
"typeVersion": 1
},
{
"parameters": {
"functionCode": "return {\n rss_item: \n`<item>\n <title>${item.title} - ${item.price}</title>\n <link>${item.link}</link>\n <description>${item.content}</description>\n <pubDate>${item.date}</pubDate>\n <image>\n <url>${item.image}</url>\n <title>${item.title}</title>\n <link>${item.link}</link>\n </image>\n <category>${item.tag}</category>\n</item>`\n}"
"functionCode": "return {\n rss_item: \n`<item>\n <title>${item.title} - ${item.price}</title>\n <link>${item.link}</link>\n <description>${item.content}</description>\n <pubDate>${item.date}</pubDate>\n <enclosure url=\"${item.image}\" type=\"image/jpg\" />\n <category>${item.tag}</category>\n</item>`\n}"
},
"name": "Create RSS Items1",
"type": "n8n-nodes-base.functionItem",
"position": [
800,
1020,
320
],
"typeVersion": 1
},
{
"parameters": {
"operation": "limit",
"maxItems": 10,
"keep": "lastItems"
},
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
800,
320
]
}
],
"connections": {
@@ -111,7 +125,7 @@
"main": [
[
{
"node": "Create RSS Items1",
"node": "Item Lists1",
"type": "main",
"index": 0
}
@@ -150,10 +164,21 @@
}
]
]
},
"Item Lists1": {
"main": [
[
{
"node": "Create RSS Items1",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-07-15T11:11:44.964Z",
"updatedAt": "2022-07-15T17:28:39.242Z",
"updatedAt": "2022-07-18T20:13:30.287Z",
"settings": {
"errorWorkflow": "25"
},

View File

@@ -1,7 +1,7 @@
{
"id": 54,
"name": "olx forbidden west",
"active": true,
"active": false,
"nodes": [
{
"parameters": {},
@@ -552,7 +552,7 @@
}
},
"createdAt": "2022-07-17T07:56:32.590Z",
"updatedAt": "2022-07-17T08:44:28.572Z",
"updatedAt": "2022-07-18T19:42:41.203Z",
"settings": {
"errorWorkflow": "25"
},

View File

@@ -1,7 +1,7 @@
{
"id": 55,
"name": "olx playstation5",
"active": true,
"active": false,
"nodes": [
{
"parameters": {},
@@ -217,8 +217,8 @@
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2280,
500
2180,
740
],
"credentials": {
"gristApi": {
@@ -309,9 +309,10 @@
{
"parameters": {
"url": "={{$json[\"image\"]}}",
"allowUnauthorizedCerts": true,
"responseFormat": "file",
"options": {}
"options": {
"ignoreResponseCode": true
}
},
"name": "HTTP Request2",
"type": "n8n-nodes-base.httpRequest",
@@ -385,8 +386,8 @@
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
2100,
500
2140,
160
]
}
],
@@ -516,12 +517,12 @@
"main": [
[
{
"node": "Set1",
"node": "HTTP Request2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request2",
"node": "Set1",
"type": "main",
"index": 0
}
@@ -563,7 +564,7 @@
}
},
"createdAt": "2022-07-17T08:02:11.870Z",
"updatedAt": "2022-07-17T19:10:52.343Z",
"updatedAt": "2022-07-18T19:42:23.841Z",
"settings": {
"errorWorkflow": "25"
},

648
flows/56.json Normal file
View File

@@ -0,0 +1,648 @@
{
"id": 56,
"name": "olx final",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
200,
-40
]
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyX",
"value": 15,
"unit": "minutes"
}
]
}
},
"name": "Cron2",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
200,
220
]
},
{
"parameters": {
"operation": "create",
"docId": "d61nLm6Fn99jwqxd6hdT9d",
"tableId": "Items",
"dataToSend": "autoMapInputs"
},
"name": "Grist",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
3040,
200
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"values": {
"string": [
{
"name": "link",
"value": "={{$node[\"IF\"].json[\"link\"]}}"
},
{
"name": "tag",
"value": "={{$node[\"IF\"].json[\"tag\"]}}"
},
{
"name": "city",
"value": "={{$node[\"IF\"].json[\"city\"]}}"
},
{
"name": "date",
"value": "={{$now.toString()}}"
}
]
},
"options": {}
},
"name": "Set1",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
2860,
200
]
},
{
"parameters": {
"url": "={{$json[\"url\"]}}",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request3",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
620,
20
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "items",
"cssSelector": "div.css-19ucd76",
"returnValue": "html",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract3",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
820,
20
]
},
{
"parameters": {
"fieldToSplitOut": "items",
"include": "allOtherFields",
"options": {}
},
"name": "Item Lists1",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1220,
20
]
},
{
"parameters": {
"dataPropertyName": "items",
"extractionValues": {
"values": [
{
"key": "link",
"cssSelector": "a.css-1bbgabe",
"returnValue": "attribute",
"attribute": "href"
},
{
"key": "city",
"cssSelector": "p.css-p6wsjo-Text.eu5v0x0"
}
]
},
"options": {}
},
"name": "HTML Extract4",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
1420,
20
]
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"link\"]}}",
"operation": "isNotEmpty"
},
{
"value1": "={{$json[\"city\"]}}",
"operation": "contains",
"value2": "Сегодня"
}
]
}
},
"name": "IF1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
1800,
20
]
},
{
"parameters": {
"docId": "d61nLm6Fn99jwqxd6hdT9d",
"tableId": "Url",
"additionalOptions": {}
},
"name": "get url",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
420,
20
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "tag",
"value": "={{$node[\"get url\"].json[\"tag\"]}}"
},
{
"name": "items",
"value": "={{$json[\"items\"]}}"
},
{
"name": "filter",
"value": "={{$node[\"get url\"].json[\"filter\"]}}"
}
]
},
"options": {}
},
"name": "Set items",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1020,
20
]
},
{
"parameters": {
"values": {
"string": [
{
"name": "link",
"value": "=https://m.olx.ua{{$json[\"link\"]}}"
},
{
"name": "tag",
"value": "={{$node[\"Item Lists1\"].json[\"tag\"]}}"
},
{
"name": "filter",
"value": "={{$node[\"Item Lists1\"].json[\"filter\"]}}"
}
]
},
"options": {}
},
"name": "Set3",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1600,
20
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "link",
"propertyName2": "link"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
2060,
20
]
},
{
"parameters": {
"docId": "d61nLm6Fn99jwqxd6hdT9d",
"tableId": "Items",
"returnAll": true,
"additionalOptions": {}
},
"name": "Grist2",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1800,
220
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"url": "={{$json[\"link\"]}}",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request4",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
2460,
20
]
},
{
"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"
},
{
"key": "title",
"cssSelector": "h1.css-r9zjja-Text.eu5v0x0"
}
]
},
"options": {
"trimValues": true
}
},
"name": "HTML Extract5",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
2640,
20
]
},
{
"parameters": {
"operation": "multiStep",
"operations": {
"operations": [
{
"operation": "resize",
"width": 300,
"height": -1,
"resizeOption": "onlyIfLarger"
},
{
"operation": "crop",
"width": 300,
"height": 100,
"positionY": 75
}
]
},
"options": {}
},
"name": "Edit Image1",
"type": "n8n-nodes-base.editImage",
"typeVersion": 1,
"position": [
3060,
20
]
},
{
"parameters": {
"url": "={{$json[\"image\"]}}",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request5",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 2,
"position": [
2860,
20
]
},
{
"parameters": {
"operation": "sendPhoto",
"chatId": "1684481",
"binaryData": true,
"additionalFields": {
"caption": "=#{{$node[\"IF\"].json[\"tag\"]}}\n<b>{{$json[\"title\"]}} - {{$json[\"price\"]}}</b>\n📍 <i>{{$node[\"IF\"].json[\"city\"]}}</i>\n<a href=\"{{$node[\"IF\"].json[\"link\"]}}\">Подробнее</a>",
"parse_mode": "HTML"
}
},
"name": "Telegram1",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [
3240,
20
],
"credentials": {
"telegramApi": {
"id": "31",
"name": "Telegram account"
}
}
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"link\"]}}",
"operation": "contains",
"value2": "={{$json[\"filter\"]}}"
}
]
}
},
"name": "IF",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
2240,
20
]
}
],
"connections": {
"Cron2": {
"main": [
[
{
"node": "get url",
"type": "main",
"index": 0
}
]
]
},
"Set1": {
"main": [
[
{
"node": "Grist",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request3": {
"main": [
[
{
"node": "HTML Extract3",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract3": {
"main": [
[
{
"node": "Set items",
"type": "main",
"index": 0
}
]
]
},
"Item Lists1": {
"main": [
[
{
"node": "HTML Extract4",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract4": {
"main": [
[
{
"node": "Set3",
"type": "main",
"index": 0
}
]
]
},
"IF1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"get url": {
"main": [
[
{
"node": "HTTP Request3",
"type": "main",
"index": 0
}
]
]
},
"Set items": {
"main": [
[
{
"node": "Item Lists1",
"type": "main",
"index": 0
}
]
]
},
"Set3": {
"main": [
[
{
"node": "IF1",
"type": "main",
"index": 0
}
]
]
},
"Grist2": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Merge": {
"main": [
[
{
"node": "IF",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request4": {
"main": [
[
{
"node": "HTML Extract5",
"type": "main",
"index": 0
}
]
]
},
"Edit Image1": {
"main": [
[
{
"node": "Telegram1",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request5": {
"main": [
[
{
"node": "Edit Image1",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract5": {
"main": [
[
{
"node": "HTTP Request5",
"type": "main",
"index": 0
},
{
"node": "Set1",
"type": "main",
"index": 0
}
]
]
},
"IF": {
"main": [
[
{
"node": "HTTP Request4",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-07-18T17:30:44.606Z",
"updatedAt": "2022-07-18T20:25:09.171Z",
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"tags": [
{
"id": "3",
"name": "olx",
"createdAt": "2022-06-21T19:20:51.822Z",
"updatedAt": "2022-06-21T19:20:51.822Z"
}
]
}