{ "name": "Parapharmacy Manual Scraper (Webhook)", "nodes": [ { "parameters": { "httpMethod": "POST", "path": "scrape-parapharmacy", "options": {} }, "id": "webhook-trigger", "name": "Webhook Trigger", "type": "n8n-nodes-base.webhook", "typeVersion": 2, "position": [220, 300], "webhookId": "scrape-parapharmacy" }, { "parameters": { "values": { "string": [ { "name": "queries", "value": "={{ $json.body?.queries || 'crema hidratante cara,protector solar,leche corporal' }}" } ] }, "options": {} }, "id": "set-queries", "name": "Set Queries", "type": "n8n-nodes-base.set", "typeVersion": 3.4, "position": [440, 300] }, { "parameters": { "fieldToSplitOut": "queries", "options": {} }, "id": "split-queries", "name": "Split Queries", "type": "n8n-nodes-base.splitOut", "typeVersion": 1, "position": [660, 300] }, { "parameters": { "method": "GET", "url": "https://www.promofarma.com/es/search?q={{ encodeURIComponent($json.queries) }}", "options": { "timeout": 30000 } }, "id": "scrape-promofarma", "name": "Scrape Promofarma", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [880, 300] }, { "parameters": { "jsCode": "// Extract products from Promofarma HTML\nconst html = $input.first().json.data;\nconst products = [];\n\nconst productRegex = /