diff --git a/My workflow 5.json b/My workflow 5.json new file mode 100644 index 0000000..bba599d --- /dev/null +++ b/My workflow 5.json @@ -0,0 +1,69 @@ +{ + "updatedAt": "2025-11-21T11:35:48.000Z", + "createdAt": "2025-11-21T10:47:00.974Z", + "id": "gfx8s7OTuVkoPgLf", + "name": "My workflow 5", + "active": false, + "isArchived": false, + "nodes": [ + { + "parameters": {}, + "type": "n8n-nodes-base.manualTrigger", + "typeVersion": 1, + "position": [ + 0, + 0 + ], + "id": "d03e6c29-dd54-4c2f-adac-5c26d9083197", + "name": "When clicking ‘Execute workflow’" + }, + { + "parameters": { + "operation": "runCustomScript", + "scriptCode": "// 1. Wir erstellen eine leere Liste (\"Array\"), um die Logs zu sammeln\nconst collectedLogs = [];\n\n// 2. Wir sagen Puppeteer: \"Jedes Mal, wenn die Seite was loggt, pack es in unsere Liste\"\n$page.on('console', message => {\n // message.type() ist z.B. 'log', 'warning', 'error'\n // message.text() ist der eigentliche Text\n collectedLogs.push(`[${message.type()}] ${message.text()}`);\n});\n\n// Navigate to an IP lookup service\nawait $page.goto('https://httpbin.org/ip');\n\n// Extract the IP address from the page content\nconst ipData = await $page.evaluate(() => {\n const response = document.body.innerText;\n const parsed = JSON.parse(response);\n console.log(\"test\")\n return parsed.origin; // Extract the 'origin' field, which typically contains the IP address\n});\n\nconsole.log(\"Hello, world!\");\n\nconsole.log(\"IP Address\", ipData);\n\n// Return the result in the required format\nreturn [{ ip: ipData, ...$json }, ];", + "options": { + "launchArguments": { + "args": [ + { + "arg": "--no-sandbox" + } + ] + } + } + }, + "type": "CUSTOM.puppeteer", + "typeVersion": 1, + "position": [ + 400, + -64 + ], + "id": "3cab4381-dd2c-44ec-b8da-8781539aa847", + "name": "Puppeteer" + } + ], + "connections": { + "When clicking ‘Execute workflow’": { + "main": [ + [] + ] + } + }, + "settings": { + "executionOrder": "v1" + }, + "staticData": null, + "meta": null, + "pinData": {}, + "versionId": "a2e1fe02-6f8d-4ba8-96be-c7e7466b0070", + "triggerCount": 0, + "shared": [ + { + "updatedAt": "2025-11-21T10:47:00.977Z", + "createdAt": "2025-11-21T10:47:00.977Z", + "role": "workflow:owner", + "workflowId": "gfx8s7OTuVkoPgLf", + "projectId": "S4tmpzSj6JlGFOze" + } + ], + "tags": [] +} \ No newline at end of file