{
  "version": "1.0.0",
  "exported_at": "2026-06-01T00:00:00.000Z",
  "project": {
    "name": "eBay Product URL Scraper",
    "description": "Scrapes product name and URL from eBay product detail URLs. This matches the Octoparse template behavior of accepting product/listing URLs and exporting Product_Name plus URL_Link. Navigation strategy: multi-URL loop using navigate.urls[] and loop-continue; no search-results pagination is used because the target inputs are individual eBay item URLs. Best-effort: eBay may show CAPTCHA, bot checks, unavailable items, regional consent banners, or layout changes.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 120,
      "position_y": 260,
      "config": {
        "urls": [
          "https://www.ebay.com/itm/355226726777?itmmeta=01HVTKCT90C93K27T580AE3BCQ&hash=item52b529b179:g:KFUAAOSwi4llYNI3&itmprp=enc%3AAQAJAAAAwA2wBHemR4OobcgkUR20IYXPmOjq1h9p%2Fmi2rnVtaqkT5p8zVn%2FC1JMskdfJY%2B3tPiGjEl0R9Teq3cTHol8yOS1W9Kfl614j7nOEACUXV7grYOirb0ONkSD0B4CNt%2BOFOZOeZU188JrJZWgHDznzNv6GYupBDCOI3fnUSX5xk5%2FEymn5mAyODlO%2FrZPQIFXqtPD6Sfy0qzeqMxbivVXOzKQvbBHeNZqQHNUanAfpOs4Zt28XkDkWPvw%2BjSd2KxcIGA%3D%3D%7Ctkp%3ABlBMUIyls9PeYw",
          "https://www.ebay.com/itm/335166847281?itmmeta=01HVTKCT90PRMRQ0E2F5RAW46N&hash=item4e09803931:g:mVcAAOSwkbZlfGRM&itmprp=enc%3AAQAJAAAAsLo1bNbfGCp3zlBWVgM%2FNjFSiwZ6H7bQ7PLcyb%2FN4HiNNo9efMcwX8gW9FUWBZfzI0X6wWBSDqgJCTXKNyzgU11HEdeHF5Hgavt4wHnkp%2B0o2KFmULLHlnBY%2FRDcqyhfDVkZ6kTQujzFFs61%2Bnv7WiOvHKQCcQkgKpjnCCNaPWXFpQMdAv%2BTWDQdOT%2FsDNKZrGE8F%2B8CGsnUaKa3QJQPOtXs1cvftLetDFYEniyieqxd%7Ctkp%3ABlBMUIyls9PeYw",
          "https://www.ebay.com/itm/204723135464?epid=10048610386&itmmeta=01HVTKCT90X6K7BQ43EPMKZKVG&hash=item2faa7323e8:g:3vUAAOSw-dlmDD6X&itmprp=enc%3AAQAJAAAAsJAoKrVWHScr5eSKIpJI1pjD2Z6r7AZ9sXvz8hrq2TVdj8DhfTezD2FLsBHoaTcHTfhSpMm2CvFCiIHuBGYl5dBtn21WnYnz8XNzqwnA%2B3Lgekr6bxUR1LQORRN1bjxfs1zg%2FpK94O%2F2uzV%2FcZ44I8%2BZhbSD8Xn1AN95SSVHMaaOvdjTM55COc6xYEfBCwSvzFW6Z22gsgh0%2FP%2Bh9c%2F7NPWt9kZqg8--f6MYXU7s0ime%7Ctkp%3ABlBMUIyls9PeYw"
        ],
        "color": "bg-[#4589ff]",
        "tags": [
          "ebay",
          "product-url",
          "multi-url"
        ]
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 480,
      "position_y": 260,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute JavaScript on the page",
      "position_x": 840,
      "position_y": 260,
      "config": {
        "jsCode": "(() => {\n  const candidates = Array.from(document.querySelectorAll('button, input[type=\"button\"], input[type=\"submit\"], a'));\n  const consentButton = candidates.find((el) => {\n    const text = ((el.innerText || el.value || el.getAttribute('aria-label') || '') + '').trim().toLowerCase();\n    return /^(accept|accept all|agree|i agree|allow all|continue|got it)$/.test(text);\n  });\n  if (consentButton) {\n    consentButton.click();\n    return 'Clicked possible consent button';\n  }\n  return 'No consent button found';\n})();",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1200,
      "position_y": 260,
      "config": {
        "duration": 2,
        "color": "bg-[#8d8d8d]"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1560,
      "position_y": 260,
      "config": {
        "selector": "body",
        "timeout": 30,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1920,
      "position_y": 260,
      "config": {
        "rowSelector": "body",
        "fileName": "ebay-product-url-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "Page",
            "selector": "'1'",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Product_Name",
            "selector": "(() => {\n  const selectors = [\n    'h1.x-item-title__mainTitle span',\n    'h1.x-item-title__mainTitle',\n    '[data-testid=\"x-item-title\"] h1 span',\n    '[data-testid=\"x-item-title\"]',\n    'h1 span.ux-textspans--BOLD',\n    'h1 span',\n    'h1',\n    'meta[property=\"og:title\"]',\n    'title'\n  ];\n  for (const sel of selectors) {\n    const el = document.querySelector(sel);\n    let value = '';\n    if (!el) continue;\n    if (el.tagName && el.tagName.toLowerCase() === 'meta') {\n      value = el.getAttribute('content') || '';\n    } else {\n      value = el.innerText || el.textContent || '';\n    }\n    value = value.replace(/\\s+/g, ' ').trim();\n    value = value.replace(/\\s*\\|\\s*eBay\\s*$/i, '').trim();\n    value = value.replace(/^Details about\\s*/i, '').trim();\n    if (value && !/^ebay$/i.test(value) && !/^Access Denied/i.test(value)) return value;\n  }\n  return '';\n})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "URL_Link",
            "selector": "window.location.href",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2280,
      "position_y": 260,
      "config": {
        "color": "bg-[#8d8d8d]"
      }
    }
  ],
  "connections": [
    {
      "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": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-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-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 48,
      "position_y": 156,
      "width": 1760,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1",
          "wait-for-element-1"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 768,
      "position_y": 156,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1848,
      "position_y": 156,
      "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": 2208,
      "position_y": 156,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes product name and URL from eBay product detail URLs. This matches the Octoparse template behavior of accepting product/listing URLs and exporting Product_Name plus URL_Link. Navigation strategy: multi-URL loop using navigate.urls[] and loop-continue; no search-results pagination is used because the target inputs are individual eBay item URLs. Best-effort: eBay may show CAPTCHA, bot checks, unavailable items, regional consent banners, or layout changes.",
      "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 3 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 320,
      "position_y": 240,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "id": "note-block-inject-javascript-1",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(() => {\n  const candidates = Array.from(document.querySelectorAll('button, input[type=\"button\"], in...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1040,
      "position_y": 240,
      "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 (Page, Product_Name, URL_Link). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2120,
      "position_y": 240,
      "width": 340,
      "height": 123,
      "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": 2480,
      "position_y": 240,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}