Files
n8n/flows/28.json

335 lines
6.5 KiB
JSON
Raw Normal View History

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
]
},
{
"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
]
},
{
"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-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
]
},
{
"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
],
"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-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
]
},
{
"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
]
},
{
"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
]
},
{
"parameters": {
"mode": "mergeByIndex",
"join": "outer"
},
"name": "Merge",
"type": "n8n-nodes-base.merge",
"typeVersion": 1,
"position": [
660,
380
]
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
}
},
"createdAt": "2022-05-30T05:02:38.795Z",
2022-07-18 21:00:57 +00:00
"updatedAt": "2022-07-18T19:42:32.298Z",
2022-05-30 05:51:40 +00:00
"settings": {},
2022-06-09 21:00:39 +00:00
"staticData": null,
2022-07-20 21:00:15 +00:00
"pinData": null,
2022-07-17 21:00:58 +00:00
"tags": [
{
"id": "2",
"name": "my",
"createdAt": "2022-05-19T09:37:15.931Z",
"updatedAt": "2022-05-19T09:37:15.931Z"
}
]
2022-05-30 05:51:40 +00:00
}