{
  "version": "1.0.0",
  "exported_at": "2026-06-02T16:00:00.000Z",
  "project": {
    "name": "eInforma Listing Scraper",
    "description": "Best-effort equivalent of the Octoparse eInforma Listing Scraper. Extracts keyword and canonical detail_url rows for the provided Zara eInforma result URLs. Navigation uses a known URL list loop because attached analysis contains detail pages and no searchable listing/pagination page; structured export appends one row per visited detail URL. CAPTCHA or consent banners may require manual handling.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "navigate-1001",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 120,
      "position_y": 240,
      "config": {
        "urls": [
          "https://www.einforma.com/rapp/ficha-empresa?id=Ezr9swp8rpbbf4Ekaf0u8g",
          "https://www.einforma.com/rapp/ficha-empresa?id=iJq5vBZL8oxXshEWMSw7sQ",
          "https://www.einforma.com/rapp/ficha-empresa?id=dujzRtiDF1BptZtvC3aoOA"
        ],
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "wait-for-page-load-1002",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 480,
      "position_y": 240,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1003",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 840,
      "position_y": 240,
      "config": {
        "jsCode": "(() => {\n  const candidates = Array.from(document.querySelectorAll('button, [role=\"button\"], .didomi-components-button'));\n  const consentButton = candidates.find(el => /agree and close|aceptar|accept|agree/i.test((el.textContent || '').trim()));\n  if (consentButton) consentButton.click();\n  return true;\n})();",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-1004",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1200,
      "position_y": 240,
      "config": {
        "duration": 1,
        "color": "bg-[#8d8d8d]"
      }
    },
    {
      "block_id": "wait-for-element-1005",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1560,
      "position_y": 240,
      "config": {
        "selector": "h2",
        "timeout": 30,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1006",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1920,
      "position_y": 240,
      "config": {
        "rowSelector": "body",
        "fileName": "einforma-listados-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "keyword",
            "selector": "'zara'",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "detail_url",
            "selector": "(() => { const id = new URLSearchParams(window.location.search).get('id'); return id ? 'https://www.einforma.com/rapp/ficha-empresa?id=' + id : window.location.href; })()",
            "attribute": "text",
            "isJs": true
          }
        ],
        "color": "bg-[#42be65]"
      }
    },
    {
      "block_id": "loop-continue-1007",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2280,
      "position_y": 240,
      "config": {
        "color": "bg-[#ff832b]"
      }
    }
  ],
  "connections": [
    {
      "from_block_id": "navigate-1001",
      "from_connector_id": "right",
      "to_block_id": "wait-for-page-load-1002",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-page-load-1002",
      "from_connector_id": "right",
      "to_block_id": "inject-javascript-1003",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-1003",
      "from_connector_id": "right",
      "to_block_id": "sleep-1004",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-1004",
      "from_connector_id": "right",
      "to_block_id": "wait-for-element-1005",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-element-1005",
      "from_connector_id": "right",
      "to_block_id": "structured-export-1006",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "structured-export-1006",
      "from_connector_id": "right",
      "to_block_id": "loop-continue-1007",
      "to_connector_id": "left"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 48,
      "position_y": 136,
      "width": 1760,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1001",
          "wait-for-page-load-1002",
          "sleep-1004",
          "wait-for-element-1005"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 768,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1003"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1848,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1006"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 2208,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1007"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort equivalent of the Octoparse eInforma Listing Scraper. Extracts keyword and canonical detail_url rows for the provided Zara eInforma result URLs. Navigation uses a known URL list loop because attached analysis contains detail pages and no searchable listing/pagination page; structured export appends one row per visited detail URL. CAPTCHA or consent banners may require manual handling.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-navigate-1001",
      "element_type": "note",
      "title": "Note: Navigate",
      "content": "Multi-URL loop over 3 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 320,
      "position_y": 220,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1001"
      }
    },
    {
      "id": "note-block-inject-javascript-1003",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(() => {\n  const candidates = Array.from(document.querySelectorAll('button, [role=\"button\"], .didomi...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1040,
      "position_y": 220,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-1003"
      }
    },
    {
      "id": "note-block-structured-export-1006",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (keyword, detail_url). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2120,
      "position_y": 220,
      "width": 340,
      "height": 120,
      "z_index": 22,
      "data": {
        "block_id": "structured-export-1006"
      }
    },
    {
      "id": "note-block-loop-continue-1007",
      "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": 2480,
      "position_y": 220,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1007"
      }
    }
  ]
}