{ "nodes": [ { "id": "scheduled-scrappey-page-fetch-0", "name": "Schedule Trigger", "type": "n8n-nodes-base.scheduleTrigger", "position": [ 380, 240 ], "parameters": { "rule": { "interval": [ {} ] } }, "typeVersion": 1.2 }, { "id": "scheduled-scrappey-page-fetch-1", "name": "Test Data", "type": "n8n-nodes-base.set", "position": [ 800, 240 ], "parameters": { "options": {}, "assignments": { "assignments": [ { "id": "2086908e-c301-4392-9cf6-b6461e11dcd4", "name": "url", "type": "string", "value": "https://example.com" } ] } }, "typeVersion": 3.3 }, { "id": "scheduled-scrappey-page-fetch-4", "name": "Fetch the page with Scrappey", "type": "n8n-nodes-base.httpRequest", "position": [ 1280, 240 ], "parameters": { "url": "https://publisher.scrappey.com/api/v1", "method": "POST", "authentication": "genericCredentialType", "genericAuthType": "httpQueryAuth", "sendBody": true, "specifyBody": "json", "jsonBody": "={{ JSON.stringify({cmd: \"request.get\", url: $json.url}) }}", "options": { "redirect": { "redirect": { "followRedirects": false } } } }, "typeVersion": 4.2 }, { "id": "scheduled-scrappey-page-fetch-validate", "name": "Validate the page URL", "type": "n8n-nodes-base.code", "typeVersion": 2, "parameters": { "mode": "runOnceForAllItems", "jsCode": "function setup({url}) {\n if (typeof url !== 'string' || !/^https?:\\/\\/[^\\/?#@\\s]+(?:[\\/?#][^\\s]*)?$/i.test(url) || url.includes('YOUR_')) throw Error('Configure an HTTP or HTTPS page URL without credentials');\n return {body:{cmd:'request.get',url}};\n}\n\nsetup({url:$input.first().json.url});return $input.all();" } } ], "pinData": {}, "connections": { "Test Data": { "main": [ [ { "node": "Validate the page URL", "type": "main", "index": 0 } ] ] }, "Schedule Trigger": { "main": [ [ { "node": "Test Data", "type": "main", "index": 0 } ] ] }, "Validate the page URL": { "main": [ [ { "node": "Fetch the page with Scrappey", "type": "main", "index": 0 } ] ] } }, "name": "Scheduled Scrappey Page Fetch", "active": false, "settings": { "timezone": "UTC" } }