Files
n8n/flows/28.json

191 lines
3.6 KiB
JSON

{
"id": 28,
"name": "usd",
"active": true,
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
-140,
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": [
60,
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": [
260,
300
]
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"number": [
{
"name": "sale",
"value": "={{$json[\"sale\"].substr(0,5)}}"
},
{
"name": "buy",
"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": [
660,
300
],
"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
]
}
],
"connections": {
"Start": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request": {
"main": [
[
{
"node": "HTML Extract",
"type": "main",
"index": 0
}
]
]
},
"HTML Extract": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"Set": {
"main": [
[
{
"node": "Grist",
"type": "main",
"index": 0
}
]
]
},
"Cron": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
}
},
"createdAt": "2022-05-30T05:02:38.795Z",
"updatedAt": "2022-05-30T06:52:48.117Z",
"settings": {},
"staticData": null
}