Files
n8n/flows/9.json

1147 lines
24 KiB
JSON
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"createdAt": "2022-04-25T10:23:57.085Z",
"updatedAt": "2022-08-06T05:03:09.573Z",
"id": 9,
"name": "hotline",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
100,
80
],
"id": "d1586938-d789-48b5-8b78-27d105e1ccfd"
},
{
"parameters": {
"url": "https://hotline.ua/computer-igrovye-pristavki/microsoft-xbox-series-x-1tb/",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
280,
320
],
"id": "f4b65746-92e0-44db-9485-1a91b44c04af"
},
{
"parameters": {
"type": "link",
"title": "hotline",
"body": "=Самая низкая цена на xbox сейчас в магазине {{$json[\"name\"]}} {{$json[\"price\"]}}грн",
"url": "=https://hotline.ua{{$json[\"link\"]}}"
},
"name": "Pushbullet",
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
1900,
320
],
"id": "c50cc56d-84bd-49fe-97f4-e120cac23e2c",
"credentials": {
"pushbulletOAuth2Api": {
"id": "10",
"name": "Pushbullet account"
}
}
},
{
"parameters": {
"operation": "update",
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"rowId": "1",
"fieldsToSend": {
"properties": [
{
"fieldId": "name",
"fieldValue": "xbox series x"
},
{
"fieldId": "price",
"fieldValue": "={{$json[\"price\"]}}"
},
{
"fieldId": "link",
"fieldValue": "={{$json[\"link\"]}}"
}
]
}
},
"name": "Grist",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1900,
520
],
"id": "e46717b5-60e4-41c6-98dc-2b1c15c8e1b2",
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "name",
"values": "xbox series x"
}
]
}
}
},
"name": "Grist1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1360,
540
],
"id": "31206bf1-a562-4828-b395-b3ee723c9e15",
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyHour"
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
-60,
640
],
"id": "a20d9667-e805-4ae7-8e1f-e23b5d420e21"
},
{
"parameters": {
"url": "https://hotline.ua/computer-igrovye-pristavki/sony-playstation-5-825-gb/",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
280,
740
],
"id": "d8b6e0ce-2477-4ba6-a8c5-b64b6db63487"
},
{
"parameters": {
"url": "https://up2date.com.ua/sony-playstation-5-white-1tb.html",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request2",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
260,
1180
],
"id": "97f30b37-fffc-4540-ab23-979beec5d9c9"
},
{
"parameters": {
"amount": 3,
"unit": "seconds"
},
"name": "Wait1",
"type": "n8n-nodes-base.wait",
"typeVersion": 1,
"position": [
640,
1320
],
"webhookId": "cbd8e377-6ce4-4679-991f-ceb3ce421870",
"id": "7a374c57-b599-40ad-a570-76dbfcd9b091"
},
{
"parameters": {
"operation": "update",
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"rowId": "2",
"fieldsToSend": {
"properties": [
{
"fieldId": "name",
"fieldValue": "ps5 up2date"
},
{
"fieldId": "price",
"fieldValue": "={{$json[\"Price\"]}}"
}
]
}
},
"name": "Grist2",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
860,
1320
],
"id": "eae84eaf-30bd-4cdd-a318-0a3ae623d4cc",
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "name",
"values": "ps5 up2date"
}
]
}
}
},
"name": "Grist3",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
640,
1180
],
"id": "4083c5ee-32bc-4833-b804-96bb46bf3d44",
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"price\"]}}",
"operation": "notEqual",
"value2": "={{$node[\"up2date ps5\"].json[\"Price\"]}}"
}
]
}
},
"name": "IF1",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
860,
1180
],
"id": "6477702d-39b2-40dc-aade-4ed3a3fb0d88"
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "Price",
"cssSelector": "div.product-page-price"
}
]
},
"options": {}
},
"name": "up2date ps5",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
440,
1180
],
"id": "637705da-e05c-4216-9653-9d946faafd03"
},
{
"parameters": {
"title": "hotline",
"body": "=Цена на PS5 на up2date: {{$node[\"up2date ps5\"].json[\"Price\"]}}"
},
"name": "Pushbullet1",
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
1160,
1180
],
"id": "54686dcc-347f-4d1e-8802-db539b1bb9cd",
"credentials": {
"pushbulletOAuth2Api": {
"id": "10",
"name": "Pushbullet account"
}
}
},
{
"parameters": {
"url": "https://up2date.com.ua/microsoft-xbox-series-x-1tb.html",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request3",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
260,
1560
],
"id": "c0f4a4c6-da2e-4e07-bbd1-7d894182e0f2"
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "Price",
"cssSelector": "div.product-page-price"
}
]
},
"options": {}
},
"name": "up2date Xbox Series X",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
440,
1560
],
"id": "3621bd82-86ea-4ba7-9ae4-4fdc1576087e"
},
{
"parameters": {
"operation": "update",
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"rowId": "3",
"fieldsToSend": {
"properties": [
{
"fieldId": "name",
"fieldValue": "xbox up2date"
},
{
"fieldId": "price",
"fieldValue": "={{$json[\"Price\"]}}"
}
]
}
},
"name": "Grist5",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
640,
1720
],
"id": "1aeee6ba-27a6-4615-9a6b-520d82e6bc2b",
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"conditions": {
"string": [
{
"value1": "={{$json[\"price\"]}}",
"operation": "notEqual",
"value2": "={{$node[\"up2date Xbox Series X\"].json[\"Price\"]}}"
}
]
}
},
"name": "IF2",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
860,
1560
],
"id": "274f181d-71e1-4b76-8667-626ab33b097b"
},
{
"parameters": {
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "name",
"values": "xbox up2date"
}
]
}
}
},
"name": "xbox price up2date old",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
640,
1560
],
"id": "9c85a6cc-aaed-4161-aa38-dff0d306d9d1",
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"type": "link",
"title": "up2date",
"body": "=Цена на XBOX на up2date: {{$node[\"up2date Xbox Series X\"].json[\"Price\"]}}",
"url": "https://up2date.com.ua/microsoft-xbox-series-x-1tb.html"
},
"name": "Pushbullet2",
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
1160,
1560
],
"id": "12befeac-8ca0-43f8-8f2f-fbe8aa52f178",
"credentials": {
"pushbulletOAuth2Api": {
"id": "10",
"name": "Pushbullet account"
}
}
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "item",
"cssSelector": "div.list__item.row.flex",
"returnValue": "html",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract2",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
480,
320
],
"id": "6e79adff-7705-44ad-ab0f-0953a3f38068"
},
{
"parameters": {
"fieldToSplitOut": "item",
"options": {}
},
"name": "Item Lists4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
700,
320
],
"id": "79c3c10a-b3fc-45ff-ac4e-3943a244a5df"
},
{
"parameters": {
"dataPropertyName": "item",
"extractionValues": {
"values": [
{
"key": "price",
"cssSelector": "span.price__value"
},
{
"key": "name",
"cssSelector": "a.shop__title.mb-row"
},
{
"key": "link",
"cssSelector": "a.info__price-actual.mb-row",
"returnValue": "attribute",
"attribute": "=href"
}
]
},
"options": {}
},
"name": "HTML Extract3",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
940,
320
],
"id": "6f19fd04-5c68-4221-b7bd-c21e237d63d6"
},
{
"parameters": {
"operation": "sort",
"sortFieldsUi": {
"sortField": [
{
"fieldName": "price"
}
]
},
"options": {}
},
"name": "Item Lists5",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1160,
320
],
"id": "ad5f84ff-d572-49b5-a2a4-7b79c7ecc650"
},
{
"parameters": {
"operation": "limit"
},
"name": "lowest price2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1360,
320
],
"id": "e452cbfe-278d-4d29-afff-007950a1c847"
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "price",
"propertyName2": "price"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1580,
320
],
"id": "a0dad199-4b74-4b1d-b02f-46f75a443cae"
},
{
"parameters": {
"type": "link",
"title": "hotline",
"body": "=Самая низкая цена на ps5 сейчас в магазине {{$json[\"name\"]}} {{$json[\"price\"]}}грн",
"url": "=https://hotline.ua{{$json[\"link\"]}}"
},
"name": "Pushbullet3",
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
2080,
740
],
"id": "85c80c1d-57a8-48aa-a82a-52cdf8a1a791",
"credentials": {
"pushbulletOAuth2Api": {
"id": "10",
"name": "Pushbullet account"
}
}
},
{
"parameters": {
"operation": "create",
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Ps5",
"dataToSend": "autoMapInputs"
},
"name": "Grist4",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2000,
1000
],
"id": "209b4a84-85e2-4d32-91ad-1efe8ce73d06",
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "item",
"cssSelector": "div.list__item.row.flex",
"returnValue": "html",
"returnArray": true
}
]
},
"options": {}
},
"name": "HTML Extract",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
500,
740
],
"id": "106bb8be-c66b-4f9d-ab65-7e00fe5fe4c7"
},
{
"parameters": {
"operation": "sort",
"sortFieldsUi": {
"sortField": [
{
"fieldName": "price"
}
]
},
"options": {}
},
"name": "Item Lists6",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1340,
740
],
"id": "4a561604-db5e-4f5c-b8fc-715e3b8f81e0"
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "price",
"propertyName2": "price"
},
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1800,
760
],
"id": "413d99d5-cedb-4c7c-a41d-1822fbe36579"
},
{
"parameters": {
"fieldToSplitOut": "item",
"options": {}
},
"name": "Item Lists7",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
720,
740
],
"id": "792fc615-c440-49f7-9ee3-a26b6aefb6eb"
},
{
"parameters": {
"dataPropertyName": "item",
"extractionValues": {
"values": [
{
"key": "price",
"cssSelector": "span.price__value"
},
{
"key": "name",
"cssSelector": "a.shop__title.mb-row"
},
{
"key": "link",
"cssSelector": "a.info__price-actual.mb-row",
"returnValue": "attribute",
"attribute": "=href"
}
]
},
"options": {}
},
"name": "HTML Extract5",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
920,
740
],
"id": "ed39a26c-df56-4e04-882d-62d8c23eeb34"
},
{
"parameters": {
"operation": "limit"
},
"name": "ps 5 lowest price",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1560,
740
],
"id": "c1483ac5-85ab-4c16-bca1-0b8432687a26"
},
{
"parameters": {
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Ps5",
"returnAll": true,
"additionalOptions": {}
},
"name": "ps5 grist",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1560,
920
],
"id": "4e498dd1-5868-4338-bb04-51229fe0aa58",
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"content": "# playstation 5\n",
"height": 80,
"width": 280
},
"id": "72b561de-ef87-4c6f-bc2e-917e91486c8a",
"name": "Note",
"type": "n8n-nodes-base.stickyNote",
"typeVersion": 1,
"position": [
280,
620
]
},
{
"parameters": {
"values": {
"string": [
{
"name": "price",
"value": "={{ $json[\"price\"].substring(0,6).replace(\" \",\"\")}}"
}
]
},
"options": {}
},
"id": "115379a6-bdb7-4b22-9b16-f336319181e0",
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
1120,
740
]
}
],
"connections": {
"HTTP Request": {
"main": [
[
{
"node": "HTML Extract2",
"type": "main",
"index": 0
}
]
]
},
"Grist1": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 1
}
]
]
},
"Cron": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
},
{
"node": "HTTP Request1",
"type": "main",
"index": 0
},
{
"node": "HTTP Request2",
"type": "main",
"index": 0
},
{
"node": "HTTP Request3",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "HTML Extract",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request2": {
"main": [
[
{
"node": "up2date ps5",
"type": "main",
"index": 0
}
]
]
},
"Wait1": {
"main": [
[
{
"node": "Grist2",
"type": "main",
"index": 0
}
]
]
},
"Grist3": {
"main": [
[
{
"node": "IF1",
"type": "main",
"index": 0
}
]
]
},
"up2date ps5": {
"main": [
[
{
"node": "Wait1",
"type": "main",
"index": 0
},
{
"node": "Grist3",
"type": "main",
"index": 0
}
]
]
},
"IF1": {
"main": [
[
{
"node": "Pushbullet1",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request3": {
"main": [
[
{
"node": "up2date Xbox Series X",
"type": "main",
"index": 0
}
]
]
},
"up2date Xbox Series X": {
"main": [
[
{
"node": "xbox price up2date old",
"type": "main",
"index": 0
},
{
"node": "Grist5",
"type": "main",
"index": 0
}
]
]
},
"xbox price up2date old": {
"main": [
[
{
"node": "IF2",
"type": "main",
"index": 0
}
]
]
},
"IF2": {
"main": [
[
{
"node": "Pushbullet2",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract2": {
"main": [
[
{
"node": "Item Lists4",
"type": "main",
"index": 0
}
]
]
},
"Item Lists4": {
"main": [
[
{
"node": "HTML Extract3",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract3": {
"main": [
[
{
"node": "Item Lists5",
"type": "main",
"index": 0
}
]
]
},
"Item Lists5": {
"main": [
[
{
"node": "lowest price2",
"type": "main",
"index": 0
}
]
]
},
"lowest price2": {
"main": [
[
{
"node": "Merge",
"type": "main",
"index": 0
}
]
]
},
"Merge": {
"main": [
[
{
"node": "Pushbullet",
"type": "main",
"index": 0
},
{
"node": "Grist",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract": {
"main": [
[
{
"node": "Item Lists7",
"type": "main",
"index": 0
}
]
]
},
"Item Lists6": {
"main": [
[
{
"node": "ps 5 lowest price",
"type": "main",
"index": 0
}
]
]
},
"Item Lists7": {
"main": [
[
{
"node": "HTML Extract5",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract5": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"ps 5 lowest price": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 0
}
]
]
},
"ps5 grist": {
"main": [
[
{
"node": "Merge1",
"type": "main",
"index": 1
}
]
]
},
"Merge1": {
"main": [
[
{
"node": "Grist4",
"type": "main",
"index": 0
},
{
"node": "Pushbullet3",
"type": "main",
"index": 0
}
]
]
},
"Set": {
"main": [
[
{
"node": "Item Lists6",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"errorWorkflow": "25"
},
"staticData": null,
"pinData": {},
"tags": [
{
"createdAt": "2022-05-19T09:37:15.931Z",
"updatedAt": "2022-05-19T09:37:15.931Z",
"id": "2",
"name": "my"
}
],
"hash": "186330c1bb88f9193d290d9b16b998ec"
}