{
  "version": "1.0.0",
  "exported_at": "2026-06-02T23:35:00.000Z",
  "project": {
    "name": "Zalandode Product Scraper",
    "description": "Best-effort Zalando.de product listing scraper equivalent to the Octoparse template. Extracts Marke, Produkt_Titel, Preis, Bild_url, PLUS_Etikett, and Produkt_url from Zalando listing/search URLs. Pagination strategy: known URL list using the three sample listing URLs from the Octoparse entry, expanded to pages 1-10 for each listing URL for stable execution in UScraper; structured export appends all pages into one fresh CSV. Zalando may show CAPTCHA, anti-bot checks, locale redirects, or require a German proxy/manual solving. The URL list can be extended if the site is stable.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated-zalando-de-product-scraper"
  },
  "blocks": [
    {
      "block_id": "set-window-size-1",
      "block_type": "process",
      "title": "Set Window Size",
      "description": "Set browser window dimensions",
      "position_x": 120,
      "position_y": 220,
      "config": {
        "width": 1920,
        "height": 1080,
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 456,
      "position_y": 220,
      "config": {
        "urls": [
          "https://www.zalando.de/adidas/",
          "https://www.zalando.de/adidas/?p=2",
          "https://www.zalando.de/adidas/?p=3",
          "https://www.zalando.de/adidas/?p=4",
          "https://www.zalando.de/adidas/?p=5",
          "https://www.zalando.de/adidas/?p=6",
          "https://www.zalando.de/adidas/?p=7",
          "https://www.zalando.de/adidas/?p=8",
          "https://www.zalando.de/adidas/?p=9",
          "https://www.zalando.de/adidas/?p=10",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer&p=2",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer&p=3",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer&p=4",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer&p=5",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer&p=6",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer&p=7",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer&p=8",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer&p=9",
          "https://www.zalando.de/kopfhoerer-damen/?q=kopfh%C3%B6rer&p=10",
          "https://www.zalando.de/damen/?q=kleid+elegant",
          "https://www.zalando.de/damen/?q=kleid+elegant&p=2",
          "https://www.zalando.de/damen/?q=kleid+elegant&p=3",
          "https://www.zalando.de/damen/?q=kleid+elegant&p=4",
          "https://www.zalando.de/damen/?q=kleid+elegant&p=5",
          "https://www.zalando.de/damen/?q=kleid+elegant&p=6",
          "https://www.zalando.de/damen/?q=kleid+elegant&p=7",
          "https://www.zalando.de/damen/?q=kleid+elegant&p=8",
          "https://www.zalando.de/damen/?q=kleid+elegant&p=9",
          "https://www.zalando.de/damen/?q=kleid+elegant&p=10"
        ],
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 792,
      "position_y": 220,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 1128,
      "position_y": 220,
      "config": {
        "jsCode": "(() => { const candidates = Array.from(document.querySelectorAll('button, [role=button], a')); const btn = candidates.find(el => /^(accept|agree|allow all|alle akzeptieren|zustimmen|ok)$/i.test((el.textContent || '').trim())); if (btn) { btn.click(); return 'clicked consent'; } return 'no consent banner'; })()",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "inject-javascript-2",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 1464,
      "position_y": 220,
      "config": {
        "jsCode": "new Promise(resolve => { let y = 0; const step = 900; const maxSteps = 8; let n = 0; const timer = setInterval(() => { window.scrollBy(0, step); y += step; n += 1; if (n >= maxSteps || y >= document.body.scrollHeight - window.innerHeight - 100) { clearInterval(timer); window.scrollTo(0, 0); resolve('scrolled listing for lazy product cards/images'); } }, 300); })",
        "waitForCompletion": true,
        "timeout": 8,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1800,
      "position_y": 220,
      "config": {
        "duration": 1,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "element-exists-1",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 2136,
      "position_y": 220,
      "config": {
        "selector": "article:has(a[href*='.html']):has(img[src*='ztat'])",
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 2472,
      "position_y": 520,
      "config": {
        "rowSelector": "article:has(a[href*='.html']):has(img[src*='ztat'])",
        "fileName": "zalando_de_produkt_scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "marke",
            "selector": "(() => { const clean = s => (s || '').replace(/\\u00a0/g, ' ').replace(/\\s+/g, ' ').trim(); const bad = /^(heart_outlined|heart|deal|mix and match|sponsored|new|sale|premium delivery|early access|plus|wide|available|from|add to wishlist|wishlist)$/i; const price = /^(from\\s+)?€?\\s*\\d+[.,]\\d{2}\\s*€?$|^\\d+%$/i; const valid = s => s && !bad.test(s) && !price.test(s) && !/regular price|last lowest|vat included|add to/i.test(s); const explicit = ROW.querySelector('[data-testid*=brand]'); if (explicit && valid(clean(explicit.textContent))) return clean(explicit.textContent); const lines = (ROW.innerText || '').split(/\\n+/).map(clean).filter(valid); if (lines[0] && !/\\s-\\s/.test(lines[0])) return lines[0]; const a = ROW.querySelector(\"a[href*='.html']\"); const href = a ? a.href : ''; try { const slug = new URL(href).pathname.split('/').pop().replace(/\\.html$/, '').split('-'); if (slug[0] === 'adidas' && ['performance','originals','sportswear','terrex'].includes(slug[1])) return 'adidas ' + (slug[1] === 'terrex' ? 'Terrex' : slug[1][0].toUpperCase() + slug[1].slice(1)); return slug[0] ? slug[0][0].toUpperCase() + slug[0].slice(1) : ''; } catch(e) { return ''; } })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "produkt_titel",
            "selector": "(() => { const clean = s => (s || '').replace(/\\u00a0/g, ' ').replace(/\\s+/g, ' ').trim(); const bad = /^(heart_outlined|heart|deal|mix and match|sponsored|new|sale|premium delivery|early access|plus|wide|available|from|add to wishlist|wishlist)$/i; const price = /^(from\\s+)?€?\\s*\\d+[.,]\\d{2}\\s*€?$|^\\d+%$/i; const valid = s => s && !bad.test(s) && !price.test(s) && !/regular price|last lowest|vat included|add to/i.test(s); const explicit = Array.from(ROW.querySelectorAll('[data-testid*=product-card-name], [data-testid*=product-name], [data-testid*=name]')).find(el => !/brand/i.test(el.getAttribute('data-testid') || '') && valid(clean(el.textContent))); if (explicit) return clean(explicit.textContent); const lines = (ROW.innerText || '').split(/\\n+/).map(clean).filter(valid); if (lines.length > 1) return lines[1]; if (lines.length === 1 && /\\s-\\s/.test(lines[0])) return lines[0]; const a = ROW.querySelector(\"a[href*='.html']\"); const href = a ? a.href : ''; try { let parts = new URL(href).pathname.split('/').pop().replace(/\\.html$/, '').split('-'); if (parts[0] === 'adidas' && ['performance','originals','sportswear','terrex'].includes(parts[1])) parts = parts.slice(2); else parts = parts.slice(1); const cut = parts.findIndex(p => /^[a-z]{2}\\d/i.test(p)); if (cut > 0) parts = parts.slice(0, cut); return parts.join(' ').replace(/\\b\\w/g, c => c.toUpperCase()); } catch(e) { return lines[0] || ''; } })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "preis",
            "selector": "(() => { const text = (ROW.innerText || '').replace(/\\u00a0/g, ' ').replace(/\\s+/g, ' '); const m = text.match(/(?:From\\s*)?(?:€\\s?\\d+(?:[.,]\\d{2})|\\d+(?:[.,]\\d{2})\\s*€)/i); return m ? m[0].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "bild_url",
            "selector": "(() => { const img = ROW.querySelector('img[src*=ztat], img[srcset*=ztat], img'); if (!img) return ''; const srcset = img.getAttribute('srcset') || ''; return img.currentSrc || img.src || (srcset ? srcset.split(',')[0].trim().split(/\\s+/)[0] : ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "plus_etikett",
            "selector": "(() => { const text = ROW.innerText || ''; const labels = []; ['Premium Delivery', 'Early Access', 'PLUS', 'Plus'].forEach(label => { if (text.toLowerCase().includes(label.toLowerCase())) labels.push(label); }); return Array.from(new Set(labels)).join(' | '); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "produkt_url",
            "selector": "(() => { const a = ROW.querySelector(\"a[href*='.html']\"); return a ? a.href : ''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2808,
      "position_y": 520,
      "config": {
        "color": "bg-[#8d8d8d]"
      }
    }
  ],
  "connections": [
    {
      "from_block_id": "set-window-size-1",
      "from_connector_id": "right",
      "to_block_id": "navigate-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "navigate-1",
      "from_connector_id": "right",
      "to_block_id": "wait-for-page-load-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-page-load-1",
      "from_connector_id": "right",
      "to_block_id": "inject-javascript-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-1",
      "from_connector_id": "right",
      "to_block_id": "inject-javascript-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-2",
      "from_connector_id": "right",
      "to_block_id": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-1",
      "from_connector_id": "right",
      "to_block_id": "element-exists-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "true",
      "to_block_id": "structured-export-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "structured-export-1",
      "from_connector_id": "right",
      "to_block_id": "loop-continue-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "false",
      "to_block_id": "loop-continue-1",
      "to_connector_id": "left"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-entry",
      "element_type": "group",
      "title": "Entry & Setup",
      "color": "#4589ff",
      "position_x": 48,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "set-window-size-1"
        ]
      }
    },
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 384,
      "position_y": 116,
      "width": 1664,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 1056,
      "position_y": 116,
      "width": 656,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1",
          "inject-javascript-2"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 2064,
      "position_y": 116,
      "width": 992,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "element-exists-1",
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 2400,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort Zalando.de product listing scraper equivalent to the Octoparse template. Extracts Marke, Produkt_Titel, Preis, Bild_url, PLUS_Etikett, and Produkt_url from Zalando listing/search URLs. Pagination strategy: known URL list using the three sample listing URLs from the Octoparse entry, expanded to pages 1-10 for each listing URL for stable execution in UScraper; structured export appends all pages into one fresh CSV. Zalando may show CAPTCHA, anti-bot checks, locale redirects, or require a German proxy/manual solving. The URL list can be extended if the site is stable.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-inject-javascript-1",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(() => { const candidates = Array.from(document.querySelectorAll('button, [role=button], a')); const...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1328,
      "position_y": 200,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-1"
      }
    },
    {
      "id": "note-block-inject-javascript-2",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `new Promise(resolve => { let y = 0; const step = 900; const maxSteps = 8; let n = 0; const timer = s...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1664,
      "position_y": 200,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-2"
      }
    },
    {
      "id": "note-block-element-exists-1",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `article:has(a[href*='.html']):has(img[src*='ztat'])`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 2336,
      "position_y": 200,
      "width": 340,
      "height": 147,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (marke, produkt_titel, preis, bild_url, plus_etikett). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2672,
      "position_y": 500,
      "width": 340,
      "height": 131,
      "z_index": 22,
      "data": {
        "block_id": "structured-export-1"
      }
    },
    {
      "id": "note-block-loop-continue-1",
      "element_type": "note",
      "title": "Note: Loop Continue",
      "content": "Loop Continue advances a multi-URL or multi-text loop. Place at the end of the loop body with a clear back-edge to the loop start.",
      "color": "#ee5396",
      "position_x": 3008,
      "position_y": 500,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}