{
  "version": "1.0.0",
  "exported_at": "2026-06-01T14:50:00.000Z",
  "project": {
    "name": "eBay Spain Product Details Scraper",
    "description": "Best-effort eBay Spain keyword scraper for iPhone results. Scrapes listing/detail-like product fields similar to the Octoparse template: title, product URL, image URL, condition, price, sold count, shipping, seller, feedback, delivery, returns, inventory and feature text. The workflow injects JavaScript to normalize real eBay search result cards as .uscraper-ebay-row, filters placeholder links such as ebay.com/itm/123456, then paginates through enabled Siguiente/Next links using append mode. Output filename changed to ebay_detalles_scraper.csv to avoid stale test output. eBay may show CAPTCHA, bot checks, or consent screens; pause and solve manually if needed.",
    "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": 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": {
        "url": "https://www.ebay.es/sch/i.html?_nkw=iPhone&_sacat=0",
        "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": 792,
      "position_y": 220,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-0",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1128,
      "position_y": 220,
      "config": {
        "duration": 3,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "element-exists-1",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 1464,
      "position_y": 220,
      "config": {
        "selector": "#gdpr-banner-accept, button#gdpr-banner-accept, button[data-testid='cookie-accept'], button[id*='accept'], button[aria-label*='Accept'], button[aria-label*='Aceptar']",
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "click-1",
      "block_type": "process",
      "title": "Click",
      "description": "Click on element",
      "position_x": 1800,
      "position_y": 520,
      "config": {
        "selector": "#gdpr-banner-accept, button#gdpr-banner-accept, button[data-testid='cookie-accept'], button[id*='accept'], button[aria-label*='Accept'], button[aria-label*='Aceptar']",
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 2136,
      "position_y": 520,
      "config": {
        "duration": 2,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "wait-for-element-0",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 2472,
      "position_y": 520,
      "config": {
        "selector": "body",
        "timeout": 30,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 2808,
      "position_y": 520,
      "config": {
        "jsCode": "(() => {\n  document.querySelectorAll('.uscraper-ebay-row').forEach(e => {\n    e.classList.remove('uscraper-ebay-row');\n    e.removeAttribute('data-uscraper-url');\n  });\n  const isBadUrl = href => !href || !/\\/itm\\//i.test(href) || /ebay\\.com\\/itm\\/123456/i.test(href);\n  const priceRe = /(?:EUR|USD|US\\s*\\$|€|\\$)\\s?\\d[\\d.,]*|\\d[\\d.,]*\\s?(?:EUR|€)/i;\n  const links = Array.from(document.querySelectorAll(\"a[href*='/itm/'], a[href*='itm/']\")).filter(a => {\n    const href = a.href || '';\n    const text = (a.textContent || '').trim();\n    return !isBadUrl(href) && !/^Shop on eBay$/i.test(text);\n  });\n  const seen = new Set();\n  const rows = [];\n  for (const a of links) {\n    const cleanHref = (a.href || '').split('?')[0];\n    if (seen.has(cleanHref)) continue;\n    let card = a.closest('li.s-item, li[data-view], article, div.s-item, div[class*=\"s-item\"], div[data-testid*=\"item\"], div[class*=\"srp-results\"], div[class*=\"card\"]');\n    if (!card || card === document.body) {\n      let el = a;\n      let best = null;\n      let bestScore = -1;\n      for (let depth = 0; el && el !== document.body && depth < 12; depth++, el = el.parentElement) {\n        const txt = (el.innerText || el.textContent || '').trim();\n        if (txt.length < 40 || txt.length > 6000) continue;\n        let score = 0;\n        if (priceRe.test(txt)) score += 20;\n        if (el.querySelector('img')) score += 8;\n        if (/env[ií]o|gratis|entrega|devoluci|reembolso|vendido|vendidos/i.test(txt)) score += 5;\n        if (/nuevo|usado|reacondicionado|vendedor/i.test(txt)) score += 4;\n        if (el.matches('li, article, div.s-item, div[class*=\"s-item\"], div[class*=\"item\"], div[class*=\"card\"]')) score += 4;\n        if (score > bestScore) { bestScore = score; best = el; }\n      }\n      card = best;\n    }\n    if (!card || card === document.body) continue;\n    const cardText = (card.innerText || card.textContent || '').trim();\n    if (!cardText || /^Shop on eBay\\s*Brand New$/i.test(cardText)) continue;\n    if (!card.querySelector('img') && !priceRe.test(cardText)) {\n      const wider = card.closest('li.s-item, li[data-view], article, div.s-item, div[class*=\"s-item\"], div[data-testid*=\"item\"]');\n      if (wider && wider !== document.body) card = wider;\n    }\n    card.classList.add('uscraper-ebay-row');\n    card.setAttribute('data-uscraper-url', cleanHref);\n    seen.add(cleanHref);\n    rows.push(card);\n  }\n  rows.forEach((row, i) => row.setAttribute('data-uscraper-row', String(i + 1)));\n  return rows.length;\n})()",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-3",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 3144,
      "position_y": 520,
      "config": {
        "duration": 1,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 3480,
      "position_y": 520,
      "config": {
        "rowSelector": ".uscraper-ebay-row",
        "fileName": "ebay_detalles_scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "titulo",
            "selector": "(() => { const parts = Array.from(ROW.querySelectorAll('.s-item__title, .s-card__title, h3, [role=\"heading\"], a[href*=\"/itm/\"]')).map(e => (e.textContent || '').trim()).filter(Boolean); let t = parts.find(x => !/^Shop on eBay$/i.test(x)) || ''; return t.replace(/Se abre en una nueva ventana o pestaña/gi, '').replace(/^Anuncio nuevo\\s*/i, '').replace(/^Nuevo anuncio\\s*/i, '').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "url_producto",
            "selector": "(() => { const a = ROW.querySelector('a[href*=\"/itm/\"]'); const href = a ? a.href.split('?')[0] : (ROW.getAttribute('data-uscraper-url') || ''); return /ebay\\.com\\/itm\\/123456/i.test(href) ? '' : href; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "url_imagen",
            "selector": "(() => { const imgs = Array.from(ROW.querySelectorAll('img')); for (const img of imgs) { let src = img.currentSrc || img.src || img.getAttribute('data-src') || img.getAttribute('data-originalsrc') || img.getAttribute('data-defer-load') || ''; if (!src && img.getAttribute('srcset')) src = img.getAttribute('srcset').split(',')[0].trim().split(' ')[0]; if (src && !/gif|blank|spacer|p\\.gif|1x1/i.test(src)) return src; } return ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "estado",
            "selector": "(() => { const el = ROW.querySelector('.SECONDARY_INFO, .s-item__subtitle, .s-card__subtitle'); const txt = el ? el.textContent.trim() : (ROW.innerText || ''); const line = txt.split('\\n').map(x => x.trim()).find(x => /nuevo|usado|reacondicionado|abierto|vendedor/i.test(x)); return line || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "precio",
            "selector": "(() => { const selectors = ['.s-item__price', '.s-card__price', '[class*=\"price\"]', '[aria-label*=\"precio\" i]', '[aria-label*=\"price\" i]']; for (const s of selectors) { const el = ROW.querySelector(s); const v = el ? (el.textContent || el.getAttribute('aria-label') || '').trim() : ''; if (/\\d/.test(v)) return v; } const txt = ROW.innerText || ROW.textContent || ''; const m = txt.match(/(?:EUR|USD|US\\s*\\$|€|\\$)\\s?\\d[\\d.,]*|\\d[\\d.,]*\\s?(?:EUR|€)/i); return m ? m[0].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "vendidos",
            "selector": "(() => { const el = ROW.querySelector('.s-item__quantitySold, .s-item__hotness, .s-item__additionalItemHotness, [class*=\"quantitySold\"], [class*=\"hotness\"]'); const val = el ? el.textContent.trim() : ''; if (val) return val; const txt = ROW.innerText || ROW.textContent || ''; const m = txt.match(/\\d+[\\d.]*\\s+(?:vendido|vendidos)(?:[^\\n]*)?/i); return m ? m[0].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "envio",
            "selector": "(() => { const el = ROW.querySelector('.s-item__shipping, .s-item__logisticsCost, .s-card__shipping, [class*=\"shipping\"], [class*=\"logistics\"]'); const val = el ? el.textContent.trim() : ''; if (val) return val; const line = (ROW.innerText || '').split('\\n').map(x => x.trim()).find(x => /env[ií]o|gratis|portes/i.test(x)); return line || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "vendedor",
            "selector": "(() => { const t = ROW.querySelector('.s-item__seller-info-text, [class*=\"seller\"], [class*=\"vendedor\"]')?.textContent || ''; return t.replace(/\\s*\\([^)]*\\).*$/, '').replace(/^(Vendedor excelente|Top-rated seller)\\s*/i, '').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "votos",
            "selector": "(() => { const t = ROW.querySelector('.s-item__seller-info-text, [class*=\"seller\"], [class*=\"vendedor\"]')?.textContent || ''; const m = t.match(/\\(([^)]+)\\)/); return m ? m[1].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "votos_positivos",
            "selector": "(() => { const t = ROW.querySelector('.s-item__seller-info-text, [class*=\"seller\"], [class*=\"vendedor\"]')?.textContent || ''; const m = t.match(/(\\d{1,3}(?:[.,]\\d+)?)\\s*%/); return m ? m[1] + '%' : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "entrega",
            "selector": "(() => { const el = ROW.querySelector('.s-item__delivery, .s-item__time-left, [class*=\"delivery\"], [class*=\"time-left\"]'); const val = el ? el.textContent.trim() : ''; if (val) return val; const line = (ROW.innerText || '').split('\\n').map(x => x.trim()).find(x => /entrega|rec[ií]belo|llega|delivery/i.test(x)); return line || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "devoluciones",
            "selector": "(() => { const el = ROW.querySelector('.s-item__free-returns, .s-item__returns, [class*=\"returns\"]'); const val = el ? el.textContent.trim() : ''; if (val) return val; const line = (ROW.innerText || '').split('\\n').map(x => x.trim()).find(x => /devoluci|reembolso|returns/i.test(x)); return line || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "inventario",
            "selector": "(() => { const el = ROW.querySelector('.s-item__availability, .s-item__purchase-options, [class*=\"availability\"], [class*=\"purchase\"]'); const val = el ? el.textContent.trim() : ''; if (val) return val; const line = (ROW.innerText || '').split('\\n').map(x => x.trim()).find(x => /disponible|stock|últim|quedan|cantidad/i.test(x)); return line || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "features",
            "selector": "(() => Array.from(ROW.querySelectorAll('.s-item__subtitle, .s-item__dynamic, .s-item__detail, .s-card__subtitle, [class*=\"detail\"], [class*=\"dynamic\"]')).map(e => e.textContent.trim()).filter(Boolean).join(' | '))()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "element-exists-2",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 3816,
      "position_y": 520,
      "config": {
        "selector": "a.pagination__next:not([aria-disabled='true']):not(.pagination__next--disabled), a[aria-label*='Siguiente']:not([aria-disabled='true']):not([class*='disabled'])",
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "end-1",
      "block_type": "output",
      "title": "End",
      "description": "Terminate execution flow",
      "position_x": 3816,
      "position_y": 520,
      "config": {
        "color": "bg-[#8d8d8d]"
      }
    },
    {
      "block_id": "click-2",
      "block_type": "process",
      "title": "Click",
      "description": "Click on element",
      "position_x": 4152,
      "position_y": 520,
      "config": {
        "selector": "a.pagination__next:not([aria-disabled='true']):not(.pagination__next--disabled), a[aria-label*='Siguiente']:not([aria-disabled='true']):not([class*='disabled'])",
        "timeout": 15,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "wait-for-page-load-2",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 4488,
      "position_y": 520,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-2",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 4824,
      "position_y": 520,
      "config": {
        "duration": 3,
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "inject-javascript-2",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 5160,
      "position_y": 520,
      "config": {
        "jsCode": "(() => {\n  document.querySelectorAll('.uscraper-ebay-row').forEach(e => {\n    e.classList.remove('uscraper-ebay-row');\n    e.removeAttribute('data-uscraper-url');\n  });\n  const isBadUrl = href => !href || !/\\/itm\\//i.test(href) || /ebay\\.com\\/itm\\/123456/i.test(href);\n  const priceRe = /(?:EUR|USD|US\\s*\\$|€|\\$)\\s?\\d[\\d.,]*|\\d[\\d.,]*\\s?(?:EUR|€)/i;\n  const links = Array.from(document.querySelectorAll(\"a[href*='/itm/'], a[href*='itm/']\")).filter(a => {\n    const href = a.href || '';\n    const text = (a.textContent || '').trim();\n    return !isBadUrl(href) && !/^Shop on eBay$/i.test(text);\n  });\n  const seen = new Set();\n  const rows = [];\n  for (const a of links) {\n    const cleanHref = (a.href || '').split('?')[0];\n    if (seen.has(cleanHref)) continue;\n    let card = a.closest('li.s-item, li[data-view], article, div.s-item, div[class*=\"s-item\"], div[data-testid*=\"item\"], div[class*=\"srp-results\"], div[class*=\"card\"]');\n    if (!card || card === document.body) {\n      let el = a;\n      let best = null;\n      let bestScore = -1;\n      for (let depth = 0; el && el !== document.body && depth < 12; depth++, el = el.parentElement) {\n        const txt = (el.innerText || el.textContent || '').trim();\n        if (txt.length < 40 || txt.length > 6000) continue;\n        let score = 0;\n        if (priceRe.test(txt)) score += 20;\n        if (el.querySelector('img')) score += 8;\n        if (/env[ií]o|gratis|entrega|devoluci|reembolso|vendido|vendidos/i.test(txt)) score += 5;\n        if (/nuevo|usado|reacondicionado|vendedor/i.test(txt)) score += 4;\n        if (el.matches('li, article, div.s-item, div[class*=\"s-item\"], div[class*=\"item\"], div[class*=\"card\"]')) score += 4;\n        if (score > bestScore) { bestScore = score; best = el; }\n      }\n      card = best;\n    }\n    if (!card || card === document.body) continue;\n    const cardText = (card.innerText || card.textContent || '').trim();\n    if (!cardText || /^Shop on eBay\\s*Brand New$/i.test(cardText)) continue;\n    if (!card.querySelector('img') && !priceRe.test(cardText)) {\n      const wider = card.closest('li.s-item, li[data-view], article, div.s-item, div[class*=\"s-item\"], div[data-testid*=\"item\"]');\n      if (wider && wider !== document.body) card = wider;\n    }\n    card.classList.add('uscraper-ebay-row');\n    card.setAttribute('data-uscraper-url', cleanHref);\n    seen.add(cleanHref);\n    rows.push(card);\n  }\n  rows.forEach((row, i) => row.setAttribute('data-uscraper-row', String(i + 1)));\n  return rows.length;\n})()",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-4",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 5496,
      "position_y": 758,
      "config": {
        "duration": 1,
        "color": "bg-[#08bdba]"
      }
    }
  ],
  "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": "sleep-0",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-0",
      "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": "click-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "false",
      "to_block_id": "wait-for-element-0",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "click-1",
      "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": "wait-for-element-0",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-element-0",
      "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": "sleep-3",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-3",
      "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": "element-exists-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-2",
      "from_connector_id": "false",
      "to_block_id": "end-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-2",
      "from_connector_id": "true",
      "to_block_id": "click-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "click-2",
      "from_connector_id": "right",
      "to_block_id": "wait-for-page-load-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-page-load-2",
      "from_connector_id": "right",
      "to_block_id": "sleep-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-2",
      "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-4",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-4",
      "from_connector_id": "right",
      "to_block_id": "structured-export-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": 5360,
      "height": 834,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-0",
          "sleep-1",
          "wait-for-element-0",
          "sleep-3",
          "wait-for-page-load-2",
          "sleep-2",
          "sleep-4"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 1392,
      "position_y": 116,
      "width": 3008,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "element-exists-1",
          "click-1",
          "element-exists-2",
          "click-2"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 2736,
      "position_y": 416,
      "width": 2672,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1",
          "inject-javascript-2"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 3408,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "group-control",
      "element_type": "group",
      "title": "Control Flow",
      "color": "#8d8d8d",
      "position_x": 3744,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "end-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort eBay Spain keyword scraper for iPhone results. Scrapes listing/detail-like product fields similar to the Octoparse template: title, product URL, image URL, condition, price, sold count, shipping, seller, feedback, delivery, returns, inventory and feature text. The workflow injects JavaScript to normalize real eBay search result cards as .uscraper-ebay-row, filters placeholder links such as ebay.com/itm/123456, then paginates through enabled Siguiente/Next links using append mode. Output filename changed to ebay_detalles_scraper.csv to avoid stale test output. eBay may show CAPTCHA, bot checks, or consent screens; pause and solve manually if needed.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-element-exists-1",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `#gdpr-banner-accept, button#gdpr-banner-accept, button[data-testid='cookie-accept'], button[id*='accept'], button[aria-l`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 1664,
      "position_y": 200,
      "width": 340,
      "height": 170,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-1"
      }
    },
    {
      "id": "note-block-inject-javascript-1",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(() => {\n  document.querySelectorAll('.uscraper-ebay-row').forEach(e => {\n    e.classList.remove('us...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 3008,
      "position_y": 500,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (titulo, url_producto, url_imagen, estado, precio). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 3680,
      "position_y": 500,
      "width": 340,
      "height": 130,
      "z_index": 22,
      "data": {
        "block_id": "structured-export-1"
      }
    },
    {
      "id": "note-block-element-exists-2",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `a.pagination__next:not([aria-disabled='true']):not(.pagination__next--disabled), a[aria-label*='Siguiente']:not([aria-di`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 4016,
      "position_y": 500,
      "width": 340,
      "height": 170,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-2"
      }
    },
    {
      "id": "note-block-click-2",
      "element_type": "note",
      "title": "Note: Click",
      "content": "Pagination click — add waits after this block; the page reloads asynchronously.",
      "color": "#ee5396",
      "position_x": 4352,
      "position_y": 500,
      "width": 316,
      "height": 106,
      "z_index": 22,
      "data": {
        "block_id": "click-2"
      }
    }
  ]
}