{ "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": { "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 ], "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 ], "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 ], "credentials": { "gristApi": { "id": "21", "name": "Grist account" } } }, { "parameters": { "triggerTimes": { "item": [ { "mode": "everyHour" } ] } }, "name": "Cron", "type": "n8n-nodes-base.cron", "typeVersion": 1, "position": [ -60, 640 ] }, { "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 ] }, { "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 ] }, { "parameters": { "amount": 3, "unit": "seconds" }, "name": "Wait1", "type": "n8n-nodes-base.wait", "typeVersion": 1, "position": [ 640, 1320 ], "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": [ 860, 1320 ], "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 ], "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 ] }, { "parameters": { "extractionValues": { "values": [ { "key": "Price", "cssSelector": "div.product-page-price" } ] }, "options": {} }, "name": "up2date ps5", "type": "n8n-nodes-base.htmlExtract", "typeVersion": 1, "position": [ 440, 1180 ] }, { "parameters": { "title": "hotline", "body": "=Цена на PS5 на up2date: {{$node[\"up2date ps5\"].json[\"Price\"]}}" }, "name": "Pushbullet1", "type": "n8n-nodes-base.pushbullet", "typeVersion": 1, "position": [ 1160, 1180 ], "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 ] }, { "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 ] }, { "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 ], "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 ] }, { "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 ], "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 ], "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 ] }, { "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" }, { "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 ] }, { "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": { "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": [ 1980, 760 ], "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": [ 1980, 1020 ], "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": { "operation": "sort", "sortFieldsUi": { "sortField": [ { "fieldName": "price" } ] }, "options": {} }, "name": "Item Lists6", "type": "n8n-nodes-base.itemLists", "typeVersion": 1, "position": [ 1180, 740 ] }, { "parameters": { "mode": "removeKeyMatches", "propertyName1": "price", "propertyName2": "price" }, "name": "Merge1", "type": "n8n-nodes-base.merge", "typeVersion": 1, "position": [ 1660, 800 ] }, { "parameters": { "fieldToSplitOut": "item", "options": {} }, "name": "Item Lists7", "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" }, { "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": [ 960, 740 ] }, { "parameters": { "operation": "limit" }, "name": "ps 5 lowest price", "type": "n8n-nodes-base.itemLists", "typeVersion": 1, "position": [ 1380, 740 ] }, { "parameters": { "docId": "i36zpc5tp8GAXXUmyymCjS", "tableId": "Ps5", "returnAll": true, "additionalOptions": {} }, "name": "ps5 grist", "type": "n8n-nodes-base.grist", "typeVersion": 1, "position": [ 1380, 960 ], "credentials": { "gristApi": { "id": "21", "name": "Grist account" } } } ], "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": "Item Lists6", "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 } ] ] } }, "createdAt": "2022-04-25T10:23:57.085Z", "updatedAt": "2022-06-26T07:13:20.996Z", "settings": { "errorWorkflow": "25" }, "staticData": null, "pinData": null, "tags": [ { "id": "2", "name": "my", "createdAt": "2022-05-19T09:37:15.931Z", "updatedAt": "2022-05-19T09:37:15.931Z" } ] }