{ "id": 28, "name": "currncy", "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_usd", "value": "={{$json[\"sale\"].substr(0,5)}}" }, { "name": "buy_usd", "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": [ 880, 380 ], "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 ] }, { "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 ] } ], "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": "Merge", "type": "main", "index": 0 } ] ] }, "Cron": { "main": [ [ { "node": "HTTP Request", "type": "main", "index": 0 }, { "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 } ] ] }, "Grist": { "main": [ [] ] }, "Merge": { "main": [ [ { "node": "Grist", "type": "main", "index": 0 } ] ] } }, "createdAt": "2022-05-30T05:02:38.795Z", "updatedAt": "2022-07-17T09:22:06.673Z", "settings": {}, "staticData": null, "tags": [ { "id": "2", "name": "my", "createdAt": "2022-05-19T09:37:15.931Z", "updatedAt": "2022-05-19T09:37:15.931Z" } ] }