2022-05-30 05:51:40 +00:00
|
|
|
{
|
2022-10-27 21:01:19 +00:00
|
|
|
"createdAt": "2022-05-30T05:02:38.795Z",
|
2022-12-29 22:00:59 +00:00
|
|
|
"updatedAt": "2022-12-29T01:24:20.388Z",
|
2022-05-30 05:51:40 +00:00
|
|
|
"id": 28,
|
2022-07-18 21:00:57 +00:00
|
|
|
"name": "curency",
|
2022-05-30 21:01:02 +00:00
|
|
|
"active": true,
|
2022-05-30 05:51:40 +00:00
|
|
|
"nodes": [
|
|
|
|
|
{
|
|
|
|
|
"parameters": {},
|
|
|
|
|
"name": "Start",
|
|
|
|
|
"type": "n8n-nodes-base.start",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-05-30 21:01:02 +00:00
|
|
|
-140,
|
2022-05-30 05:51:40 +00:00
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "2f0ccd96-cdd7-4ed8-a7d6-b2beb033b89d"
|
2022-05-30 05:51:40 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"url": "https://minfin.com.ua/currency/auction/usd/buy/chernigov/",
|
|
|
|
|
"responseFormat": "string",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "HTTP Request",
|
|
|
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
|
|
|
"typeVersion": 2,
|
|
|
|
|
"position": [
|
2022-05-30 21:01:02 +00:00
|
|
|
60,
|
2022-05-30 05:51:40 +00:00
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "fb3694ae-78af-42f0-a731-28323ef9764b"
|
2022-05-30 05:51:40 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"extractionValues": {
|
|
|
|
|
"values": [
|
|
|
|
|
{
|
|
|
|
|
"key": "buy",
|
|
|
|
|
"cssSelector": "div.buy > span.Typography.cardHeadlineL ",
|
|
|
|
|
"returnValue": "html"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "sale",
|
|
|
|
|
"cssSelector": "div.sale > span.Typography.cardHeadlineL",
|
|
|
|
|
"returnValue": "html"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "HTML Extract",
|
|
|
|
|
"type": "n8n-nodes-base.htmlExtract",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-05-30 21:01:02 +00:00
|
|
|
260,
|
2022-05-30 05:51:40 +00:00
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "47b66f11-b394-4106-91ab-a52d8f566211"
|
2022-05-30 21:01:02 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"keepOnlySet": true,
|
|
|
|
|
"values": {
|
|
|
|
|
"number": [
|
|
|
|
|
{
|
2022-07-17 21:00:58 +00:00
|
|
|
"name": "sale_usd",
|
2022-05-30 21:01:02 +00:00
|
|
|
"value": "={{$json[\"sale\"].substr(0,5)}}"
|
|
|
|
|
},
|
|
|
|
|
{
|
2022-07-17 21:00:58 +00:00
|
|
|
"name": "buy_usd",
|
2022-05-30 21:01:02 +00:00
|
|
|
"value": "={{$json[\"buy\"].substr(0,5)}}"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"string": [
|
|
|
|
|
{
|
|
|
|
|
"name": "date",
|
|
|
|
|
"value": "={{$now.toString()}}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {
|
|
|
|
|
"dotNotation": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "Set",
|
|
|
|
|
"type": "n8n-nodes-base.set",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
440,
|
|
|
|
|
300
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "70d97d3d-2c60-4be7-b929-e7deecfd0288"
|
2022-05-30 21:01:02 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"operation": "create",
|
|
|
|
|
"docId": "uRdJbcjhbMVmAJ3vyegxhE",
|
|
|
|
|
"tableId": "USD",
|
|
|
|
|
"dataToSend": "autoMapInputs"
|
|
|
|
|
},
|
|
|
|
|
"name": "Grist",
|
|
|
|
|
"type": "n8n-nodes-base.grist",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
2022-07-17 21:00:58 +00:00
|
|
|
880,
|
|
|
|
|
380
|
2022-05-30 21:01:02 +00:00
|
|
|
],
|
2022-08-03 21:00:21 +00:00
|
|
|
"id": "45bc0bd4-2f33-4296-ac7d-d80873bd8608",
|
2022-05-30 21:01:02 +00:00
|
|
|
"credentials": {
|
|
|
|
|
"gristApi": {
|
|
|
|
|
"id": "21",
|
|
|
|
|
"name": "Grist account"
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"triggerTimes": {
|
|
|
|
|
"item": [
|
|
|
|
|
{
|
|
|
|
|
"mode": "everyX",
|
|
|
|
|
"value": 4
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "Cron",
|
|
|
|
|
"type": "n8n-nodes-base.cron",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
-140,
|
|
|
|
|
480
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "096dbf21-146e-4c8d-81d2-5401089a766d"
|
2022-07-17 21:00:58 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"url": "https://minfin.com.ua/currency/auction/eur/buy/chernigov/",
|
|
|
|
|
"responseFormat": "string",
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "HTTP Request1",
|
|
|
|
|
"type": "n8n-nodes-base.httpRequest",
|
|
|
|
|
"typeVersion": 2,
|
|
|
|
|
"position": [
|
|
|
|
|
60,
|
|
|
|
|
480
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "389dc81c-d913-45c1-938b-8a886d972fab"
|
2022-07-17 21:00:58 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"extractionValues": {
|
|
|
|
|
"values": [
|
|
|
|
|
{
|
|
|
|
|
"key": "buy",
|
|
|
|
|
"cssSelector": "div.buy > span.Typography.cardHeadlineL ",
|
|
|
|
|
"returnValue": "html"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"key": "sale",
|
|
|
|
|
"cssSelector": "div.sale > span.Typography.cardHeadlineL",
|
|
|
|
|
"returnValue": "html"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {}
|
|
|
|
|
},
|
|
|
|
|
"name": "HTML Extract1",
|
|
|
|
|
"type": "n8n-nodes-base.htmlExtract",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
260,
|
|
|
|
|
480
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "fd6feab0-d74f-4d46-8039-e38399dc5cf8"
|
2022-07-17 21:00:58 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"keepOnlySet": true,
|
|
|
|
|
"values": {
|
|
|
|
|
"number": [
|
|
|
|
|
{
|
|
|
|
|
"name": "sale_eur",
|
|
|
|
|
"value": "={{$json[\"sale\"].substr(0,5)}}"
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "buy_eur",
|
|
|
|
|
"value": "={{$json[\"buy\"].substr(0,5)}}"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"string": [
|
|
|
|
|
{
|
|
|
|
|
"name": "date",
|
|
|
|
|
"value": "={{$now.toString()}}"
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"options": {
|
|
|
|
|
"dotNotation": false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"name": "Set1",
|
|
|
|
|
"type": "n8n-nodes-base.set",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
440,
|
|
|
|
|
480
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "8959670b-30e3-4a29-a5c2-5e69898af45e"
|
2022-07-17 21:00:58 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"parameters": {
|
|
|
|
|
"mode": "mergeByIndex",
|
|
|
|
|
"join": "outer"
|
|
|
|
|
},
|
|
|
|
|
"name": "Merge",
|
|
|
|
|
"type": "n8n-nodes-base.merge",
|
|
|
|
|
"typeVersion": 1,
|
|
|
|
|
"position": [
|
|
|
|
|
660,
|
|
|
|
|
380
|
2022-08-03 21:00:21 +00:00
|
|
|
],
|
|
|
|
|
"id": "9061909f-3128-408d-9aba-a6dce5c6e64e"
|
2022-05-30 05:51:40 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"connections": {
|
|
|
|
|
"Start": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "HTTP Request",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"HTTP Request": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "HTML Extract",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
2022-05-30 21:01:02 +00:00
|
|
|
},
|
|
|
|
|
"HTML Extract": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Set",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Set": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
2022-07-17 21:00:58 +00:00
|
|
|
"node": "Merge",
|
2022-05-30 21:01:02 +00:00
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Cron": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "HTTP Request",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
2022-07-17 21:00:58 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"node": "HTTP Request1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"HTML Extract1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Set1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"HTTP Request1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "HTML Extract1",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Set1": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Merge",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 1
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"Merge": {
|
|
|
|
|
"main": [
|
|
|
|
|
[
|
|
|
|
|
{
|
|
|
|
|
"node": "Grist",
|
|
|
|
|
"type": "main",
|
|
|
|
|
"index": 0
|
2022-05-30 21:01:02 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
]
|
2022-05-30 05:51:40 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"settings": {},
|
2022-06-09 21:00:39 +00:00
|
|
|
"staticData": null,
|
2022-12-07 22:01:07 +00:00
|
|
|
"dataLoaded": true,
|
2022-08-03 21:00:21 +00:00
|
|
|
"pinData": {},
|
2022-12-07 22:01:07 +00:00
|
|
|
"versionId": "fe7f7772-6e22-4343-bd70-cb75cbe76e7e",
|
2022-12-21 22:01:02 +00:00
|
|
|
"triggerCount": 1,
|
2022-07-17 21:00:58 +00:00
|
|
|
"tags": [
|
|
|
|
|
{
|
|
|
|
|
"createdAt": "2022-05-19T09:37:15.931Z",
|
2022-10-27 21:01:19 +00:00
|
|
|
"updatedAt": "2022-05-19T09:37:15.931Z",
|
|
|
|
|
"id": "2",
|
|
|
|
|
"name": "my"
|
2022-07-17 21:00:58 +00:00
|
|
|
}
|
2022-12-07 22:01:07 +00:00
|
|
|
]
|
2022-05-30 05:51:40 +00:00
|
|
|
}
|