Files
n8n/flows/9.json

1055 lines
21 KiB
JSON
Raw Normal View History

2022-05-26 20:57:30 +03:00
{
"id": 9,
"name": "hotline",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
100,
80
]
},
{
"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
]
},
{
"parameters": {
"title": "hotline",
2022-06-23 21:00:30 +00:00
"body": "=Самая низкая цена на xbox сейчас в магазине {{$json[\"name\"]}} {{$json[\"price\"]}}грн"
2022-05-26 20:57:30 +03:00
},
"name": "Pushbullet",
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
1900,
320
2022-05-26 20:57:30 +03:00
],
"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",
2022-06-23 21:00:30 +00:00
"fieldValue": "={{$json[\"price\"]}}"
2022-05-26 20:57:30 +03:00
}
]
}
},
"name": "Grist",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
1900,
520
2022-05-26 20:57:30 +03:00
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"returnAll": true,
2022-06-08 21:00:42 +00:00
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "name",
"values": "xbox series x"
}
]
}
}
2022-05-26 20:57:30 +03:00
},
"name": "Grist1",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
1360,
540
2022-05-26 20:57:30 +03:00
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"triggerTimes": {
"item": [
{
"mode": "everyHour"
}
]
}
},
"name": "Cron",
"type": "n8n-nodes-base.cron",
"typeVersion": 1,
"position": [
2022-06-08 21:00:42 +00:00
-60,
640
2022-05-26 20:57:30 +03:00
]
},
{
"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,
2022-06-23 21:00:30 +00:00
740
2022-05-26 20:57:30 +03:00
]
2022-06-08 21:00:42 +00:00
},
{
"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": [
2022-06-23 21:00:30 +00:00
260,
1180
2022-06-08 21:00:42 +00:00
]
},
{
"parameters": {
"amount": 3,
"unit": "seconds"
},
"name": "Wait1",
"type": "n8n-nodes-base.wait",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
640,
1320
2022-06-08 21:00:42 +00:00
],
"webhookId": "cbd8e377-6ce4-4679-991f-ceb3ce421870"
},
{
"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": [
2022-06-23 21:00:30 +00:00
860,
1320
2022-06-08 21:00:42 +00:00
],
"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": [
2022-06-23 21:00:30 +00:00
640,
1180
2022-06-08 21:00:42 +00:00
],
"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": [
2022-06-23 21:00:30 +00:00
860,
1180
2022-06-08 21:00:42 +00:00
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "Price",
"cssSelector": "div.product-page-price"
}
]
},
"options": {}
},
"name": "up2date ps5",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
440,
1180
2022-06-08 21:00:42 +00:00
]
},
{
"parameters": {
"title": "hotline",
"body": "=Цена на PS5 на up2date: {{$node[\"up2date ps5\"].json[\"Price\"]}}"
},
"name": "Pushbullet1",
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
1160,
1180
2022-06-08 21:00:42 +00:00
],
"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": [
2022-06-23 21:00:30 +00:00
260,
1560
2022-06-08 21:00:42 +00:00
]
},
{
"parameters": {
"extractionValues": {
"values": [
{
"key": "Price",
"cssSelector": "div.product-page-price"
}
]
},
"options": {}
},
"name": "up2date Xbox Series X",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
2022-06-23 21:00:30 +00:00
440,
1560
2022-06-08 21:00:42 +00:00
]
},
{
"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": [
2022-06-23 21:00:30 +00:00
640,
1720
2022-06-08 21:00:42 +00:00
],
"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": [
2022-06-23 21:00:30 +00:00
860,
1560
2022-06-08 21:00:42 +00:00
]
},
{
"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": [
2022-06-23 21:00:30 +00:00
640,
1560
2022-06-08 21:00:42 +00:00
],
"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": [
2022-06-23 21:00:30 +00:00
1160,
1560
2022-06-08 21:00:42 +00:00
],
"credentials": {
"pushbulletOAuth2Api": {
"id": "10",
"name": "Pushbullet account"
}
}
2022-06-23 21:00:30 +00:00
},
{
"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
]
},
{
"parameters": {
"fieldToSplitOut": "item",
"options": {}
},
"name": "Item Lists4",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
700,
320
]
},
{
"parameters": {
"dataPropertyName": "item",
"extractionValues": {
"values": [
{
"key": "price",
"cssSelector": "span.price__value"
},
{
"key": "name",
"cssSelector": "a.shop__title.mb-row"
}
]
},
"options": {}
},
"name": "HTML Extract3",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
940,
320
]
},
{
"parameters": {
"operation": "sort",
"sortFieldsUi": {
"sortField": [
{
"fieldName": "price"
}
]
},
"options": {}
},
"name": "Item Lists5",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1160,
320
]
},
{
"parameters": {
"operation": "limit"
},
"name": "lowest price2",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1360,
320
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "price",
"propertyName2": "price"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1580,
320
]
},
{
"parameters": {
"title": "hotline",
"body": "=Самая низкая цена на ps5 сейчас в магазине {{$json[\"name\"]}} {{$json[\"price\"]}}грн"
},
"name": "Pushbullet3",
"type": "n8n-nodes-base.pushbullet",
"typeVersion": 1,
"position": [
1900,
740
],
"credentials": {
"pushbulletOAuth2Api": {
"id": "10",
"name": "Pushbullet account"
}
}
},
{
"parameters": {
"operation": "update",
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"rowId": "1",
"fieldsToSend": {
"properties": [
{
"fieldId": "name",
"fieldValue": "ps5"
},
{
"fieldId": "price",
"fieldValue": "={{$json[\"price\"]}}"
}
]
}
},
"name": "Grist4",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
2080,
920
],
"credentials": {
"gristApi": {
"id": "21",
"name": "Grist account"
}
}
},
{
"parameters": {
"docId": "i36zpc5tp8GAXXUmyymCjS",
"tableId": "Price",
"returnAll": true,
"additionalOptions": {
"filter": {
"filterProperties": [
{
"field": "name",
"values": "ps5"
}
]
}
}
},
"name": "Grist6",
"type": "n8n-nodes-base.grist",
"typeVersion": 1,
"position": [
1380,
960
],
"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
]
},
{
"parameters": {
"fieldToSplitOut": "item",
"options": {}
},
"name": "Item Lists",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
720,
740
]
},
{
"parameters": {
"dataPropertyName": "item",
"extractionValues": {
"values": [
{
"key": "price",
"cssSelector": "span.price__value"
},
{
"key": "name",
"cssSelector": "a.shop__title.mb-row"
}
]
},
"options": {}
},
"name": "HTML Extract4",
"type": "n8n-nodes-base.htmlExtract",
"typeVersion": 1,
"position": [
980,
740
]
},
{
"parameters": {
"operation": "sort",
"sortFieldsUi": {
"sortField": [
{
"fieldName": "price"
}
]
},
"options": {}
},
"name": "Item Lists6",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1180,
740
]
},
{
"parameters": {
"operation": "limit"
},
"name": "lowest price",
"type": "n8n-nodes-base.itemLists",
"typeVersion": 1,
"position": [
1380,
740
]
},
{
"parameters": {
"mode": "removeKeyMatches",
"propertyName1": "price",
"propertyName2": "price"
},
"name": "Merge1",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
1600,
740
]
2022-05-26 20:57:30 +03:00
}
],
"connections": {
"HTTP Request": {
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "HTML Extract2",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Grist1": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"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",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"HTTP Request1": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "HTML Extract",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"HTTP Request2": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "up2date ps5",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Wait1": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Grist2",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Grist3": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "IF1",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"up2date ps5": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Wait1",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
},
{
2022-06-23 21:00:30 +00:00
"node": "Grist3",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"IF1": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Pushbullet1",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"HTTP Request3": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "up2date Xbox Series X",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
2022-06-23 21:00:30 +00:00
}
]
]
},
"up2date Xbox Series X": {
"main": [
[
2022-06-08 21:00:42 +00:00
{
2022-06-23 21:00:30 +00:00
"node": "xbox price up2date old",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
},
{
2022-06-23 21:00:30 +00:00
"node": "Grist5",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
2022-05-26 20:57:30 +03:00
}
]
]
},
2022-06-23 21:00:30 +00:00
"xbox price up2date old": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "IF2",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"IF2": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Pushbullet2",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"HTML Extract2": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Item Lists4",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Item Lists4": {
2022-05-26 20:57:30 +03:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "HTML Extract3",
2022-05-26 20:57:30 +03:00
"type": "main",
"index": 0
}
]
]
2022-06-08 21:00:42 +00:00
},
2022-06-23 21:00:30 +00:00
"HTML Extract3": {
2022-06-08 21:00:42 +00:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Item Lists5",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Item Lists5": {
2022-06-08 21:00:42 +00:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "lowest price2",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"lowest price2": {
2022-06-08 21:00:42 +00:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Merge",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Merge": {
2022-06-08 21:00:42 +00:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Pushbullet",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
},
{
2022-06-23 21:00:30 +00:00
"node": "Grist",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Grist6": {
2022-06-08 21:00:42 +00:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Merge1",
2022-06-08 21:00:42 +00:00
"type": "main",
2022-06-23 21:00:30 +00:00
"index": 1
2022-06-08 21:00:42 +00:00
}
]
]
},
2022-06-23 21:00:30 +00:00
"HTML Extract": {
2022-06-08 21:00:42 +00:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Item Lists",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Item Lists": {
2022-06-08 21:00:42 +00:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "HTML Extract4",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
2022-06-23 21:00:30 +00:00
}
]
]
},
"HTML Extract4": {
"main": [
[
2022-06-08 21:00:42 +00:00
{
2022-06-23 21:00:30 +00:00
"node": "Item Lists6",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Item Lists6": {
2022-06-08 21:00:42 +00:00
"main": [
2022-06-23 21:00:30 +00:00
[
{
"node": "lowest price",
"type": "main",
"index": 0
}
]
2022-06-08 21:00:42 +00:00
]
},
2022-06-23 21:00:30 +00:00
"lowest price": {
2022-06-08 21:00:42 +00:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Merge1",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
}
]
]
},
2022-06-23 21:00:30 +00:00
"Merge1": {
2022-06-08 21:00:42 +00:00
"main": [
[
{
2022-06-23 21:00:30 +00:00
"node": "Pushbullet3",
"type": "main",
"index": 0
},
{
"node": "Grist4",
2022-06-08 21:00:42 +00:00
"type": "main",
"index": 0
}
]
]
2022-05-26 20:57:30 +03:00
}
},
"createdAt": "2022-04-25T10:23:57.085Z",
2022-06-23 21:00:30 +00:00
"updatedAt": "2022-06-23T11:05:34.360Z",
2022-05-26 20:57:30 +03:00
"settings": {},
2022-06-09 21:00:39 +00:00
"staticData": null,
"tags": []
2022-05-26 20:57:30 +03:00
}