{
  "version": "1.0.0",
  "exported_at": "2026-06-03T12:00:00.000Z",
  "project": {
    "name": "Zalandofr Product Scraper",
    "description": "Scrapes Zalando.fr product detail pages equivalent to the Octoparse Zalando.fr Product Scraper preview. Exports marque, description, prix, detail_url, and img. Navigation uses a multi-URL product-detail loop over the supplied Zalando product URLs; product detail pages have no pagination, so add more product URLs to navigate.urls to collect more products. Best-effort template: Zalando may change markup or block automated scraping.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "set-window-size-1",
      "block_type": "process",
      "title": "Set Window Size",
      "description": "Set browser window dimensions",
      "position_x": 100,
      "position_y": 220,
      "config": {
        "width": 1920,
        "height": 1080
      }
    },
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 460,
      "position_y": 220,
      "config": {
        "urls": [
          "https://www.zalando.fr/puma-acm-tee-t-shirt-imprime-blackred-pu142d2tw-q11.html",
          "https://www.zalando.fr/lacoste-sport-kurzarm-polo-bleu-marine-blanc-l0622o011-k11.html"
        ],
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 820,
      "position_y": 220,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1180,
      "position_y": 220,
      "config": {
        "selector": "[data-testid=\"product_title-brand-name\"], h1",
        "timeout": 30,
        "visible": true
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1540,
      "position_y": 220,
      "config": {
        "rowSelector": "body",
        "fileName": "zalando_fr_produit_scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "marque",
            "selector": "(document.querySelector('[data-testid=\"product_title-brand-name\"]')?.textContent || document.querySelector('[data-testid=\"product_title-brand-link\"]')?.getAttribute('title') || ((document.querySelector('meta[property=\"og:title\"]')?.getAttribute('content') || document.title || '').split(' - ')[0]) || '').replace(/\\s+/g, ' ').trim()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "description",
            "selector": "(() => { const direct = document.querySelector('[data-testid=\"product_title-product-name\"]')?.textContent; if (direct) return direct.replace(/\\s+/g, ' ').trim(); const title = (document.querySelector('meta[property=\"og:title\"]')?.getAttribute('content') || document.title || '').replace(' - ZALANDO.FR', ''); const brand = document.querySelector('[data-testid=\"product_title-brand-name\"]')?.textContent || document.querySelector('[data-testid=\"product_title-brand-link\"]')?.getAttribute('title') || ''; return title.replace(brand, '').replace(/\\s+/g, ' ').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "prix",
            "selector": "(document.querySelector('meta[name=\"twitter:data1\"]')?.getAttribute('content') || (document.body.innerText.match(/(?:à partir de\\s*)?\\d+[,.]\\d{2}\\s*€/) || [''])[0] || '').replace(/\\s+/g, ' ').trim()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "detail_url",
            "selector": "location.href",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "img",
            "selector": "(() => { const src = document.querySelector('meta[property=\"og:image\"]')?.getAttribute('content') || document.querySelector('[data-testid^=\"product_gallery-hover-zoom-image\"], [data-testid^=\"product_gallery-thumbnail-carousel-image\"]')?.src || ''; return src.replace('imwidth=800', 'imwidth=300').replace('imwidth=762', 'imwidth=300').replace('imwidth=156', 'imwidth=300'); })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1900,
      "position_y": 220,
      "config": {}
    }
  ],
  "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": "wait-for-element-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-element-1",
      "from_connector_id": "right",
      "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"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-entry",
      "element_type": "group",
      "title": "Entry & Setup",
      "color": "#4589ff",
      "position_x": 28,
      "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": 388,
      "position_y": 116,
      "width": 1040,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1468,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 1828,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes Zalando.fr product detail pages equivalent to the Octoparse Zalando.fr Product Scraper preview. Exports marque, description, prix, detail_url, and img. Navigation uses a multi-URL product-detail loop over the supplied Zalando product URLs; product detail pages have no pagination, so add more product URLs to navigate.urls to collect more products. Best-effort template: Zalando may change markup or block automated scraping.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-navigate-1",
      "element_type": "note",
      "title": "Note: Navigate",
      "content": "Multi-URL loop over 2 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 660,
      "position_y": 200,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (marque, description, prix, detail_url, img). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1740,
      "position_y": 200,
      "width": 340,
      "height": 128,
      "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": 2100,
      "position_y": 200,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}