[ { "id": "7f0acab470911e6e", "type": "tab", "label": "Get Coops Panamá ", "disabled": false, "info": "### Fuente: IPCOOP", "env": [] }, { "id": "772316e0710af934", "type": "inject", "z": "7f0acab470911e6e", "name": "Start", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "", "payloadType": "date", "x": 90, "y": 80, "wires": [ [ "14d7e672986e5a93" ] ] }, { "id": "14d7e672986e5a93", "type": "http request", "z": "7f0acab470911e6e", "name": "Read IPACOOP", "method": "GET", "ret": "txt", "paytoqs": "ignore", "url": "https://ipacoop.gob.pa/listado-de-cooperativas-obligadas/", "tls": "", "persist": false, "proxy": "", "insecureHTTPParser": false, "authType": "", "senderr": false, "headers": [], "x": 240, "y": 40, "wires": [ [ "8c2bc9a9303297a6" ] ] }, { "id": "8c2bc9a9303297a6", "type": "html", "z": "7f0acab470911e6e", "name": "Get html Table", "property": "payload", "outproperty": "payload", "tag": "table", "ret": "html", "as": "multi", "chr": "_", "x": 220, "y": 180, "wires": [ [ "030626a963966e90" ] ] }, { "id": "072f59e44c2a666e", "type": "html-pro", "z": "7f0acab470911e6e", "name": "Get data coops", "property": "payload", "outproperty": "payload", "dotrim": true, "selectors": [ { "path": "td", "key": "cols", "returnValue": "0", "attribute": "", "returnArray": true } ], "x": 480, "y": 220, "wires": [ [ "b6385dfa3d13631a" ] ] }, { "id": "ef9384e43a31a072", "type": "debug", "z": "7f0acab470911e6e", "name": "debug 1", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 900, "y": 360, "wires": [] }, { "id": "030626a963966e90", "type": "html", "z": "7f0acab470911e6e", "name": "Get html rows", "property": "payload", "outproperty": "payload", "tag": "tr", "ret": "html", "as": "multi", "chr": "_", "x": 420, "y": 120, "wires": [ [ "072f59e44c2a666e" ] ] }, { "id": "b6385dfa3d13631a", "type": "function", "z": "7f0acab470911e6e", "name": "Set columns", "func": "msg.payload = [ \n msg.payload.cols[0],\n msg.payload.cols[1], \n msg.payload.cols[2], \n msg.payload.cols[3], \n ]\nreturn msg;", "outputs": 1, "timeout": 0, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 610, "y": 380, "wires": [ [ "b4c01ef9959e3d46" ] ] }, { "id": "b4c01ef9959e3d46", "type": "csv", "z": "7f0acab470911e6e", "name": "Convert to CSV", "spec": "rfc", "sep": ",", "hdrin": "", "hdrout": "none", "multi": "mult", "ret": "\\r\\n", "temp": "", "skip": "0", "strings": true, "include_empty_strings": "", "include_null_values": "", "x": 680, "y": 60, "wires": [ [ "8bf7ab33a2355e9e" ] ] }, { "id": "8bf7ab33a2355e9e", "type": "join", "z": "7f0acab470911e6e", "name": "", "mode": "auto", "build": "object", "property": "payload", "propertyType": "msg", "key": "topic", "joiner": "\\n", "joinerType": "str", "useparts": false, "accumulate": true, "timeout": "", "count": "", "reduceRight": false, "reduceExp": "", "reduceInit": "", "reduceInitType": "", "reduceFixup": "", "x": 790, "y": 160, "wires": [ [ "564ee299fea9449b" ] ] }, { "id": "564ee299fea9449b", "type": "file", "z": "7f0acab470911e6e", "name": "Save coops_507.csv", "filename": "/home/mrosero/Documentos/mercadeo/coops/coops_507.csv", "filenameType": "str", "appendNewline": true, "createDir": false, "overwriteFile": "true", "encoding": "none", "x": 860, "y": 240, "wires": [ [ "ef9384e43a31a072" ] ] } ]