{
  "version": "1.0.0",
  "exported_at": "2026-06-02T00:00:00.000Z",
  "project": {
    "name": "Ali Express Product List ScraperKorean Version",
    "description": "Scrapes AliExpress Korean keyword search results for the Octoparse-equivalent product list fields: search keyword, product name, product URL, rating, sales volume, current price, original price, shipping, image URL, seller, and seller URL. Uses AliExpress URL pagination with page=1 through page=10 and appends all pages into one CSV. The filename was changed to a refined snake_case name to avoid stale appended rows from previous test runs. AliExpress may redirect locale/currency or show CAPTCHA/unusual-traffic verification; solve CAPTCHA manually in the browser if prompted. Seller fields may be blank when the current AliExpress search-card layout does not expose store links.",
    "color": "bg-[#ff832b]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "set-window-size-1",
      "block_type": "process",
      "title": "Set Window Size",
      "description": "Set browser viewport size",
      "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://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=1&g=y",
          "https://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=2&g=y",
          "https://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=3&g=y",
          "https://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=4&g=y",
          "https://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=5&g=y",
          "https://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=6&g=y",
          "https://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=7&g=y",
          "https://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=8&g=y",
          "https://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=9&g=y",
          "https://ko.aliexpress.com/wholesale?SearchText=%EC%9D%B4%EC%81%9C%20%EB%AC%B4%EB%93%9C%EB%93%B1&page=10&g=y"
        ],
        "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": 45,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1128,
      "position_y": 220,
      "config": {
        "selector": "a[href*=\"/item/\"]",
        "timeout": 90,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 1464,
      "position_y": 220,
      "config": {
        "jsCode": "window.scrollTo(0, 0); await new Promise(r => setTimeout(r, 300)); window.scrollTo(0, document.body.scrollHeight); await new Promise(r => setTimeout(r, 1400)); window.scrollTo(0, 0); return true;",
        "waitForCompletion": true,
        "timeout": 12,
        "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": 2,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 2136,
      "position_y": 220,
      "config": {
        "rowSelector": "a[href*=\"/item/\"]",
        "fileName": "ali_express_product_list_scraper_for_korea_refined.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "search_keyword",
            "selector": "(() => { try { return decodeURIComponent(new URL(location.href).searchParams.get('SearchText') || '이쁜 무드등'); } catch(e) { return '이쁜 무드등'; } })()",
            "jsCode": "(() => { try { return decodeURIComponent(new URL(location.href).searchParams.get('SearchText') || '이쁜 무드등'); } catch(e) { return '이쁜 무드등'; } })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "product_name",
            "selector": "(() => { const raw = (ROW.getAttribute('title') || ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' ').trim(); return raw.replace(/\\s*(?:₩|\\$)\\s*[\\d,.]+.*$/,'').replace(/\\s*See preview.*$/i,'').replace(/\\s*Similar items.*$/i,'').trim(); })()",
            "jsCode": "(() => { const raw = (ROW.getAttribute('title') || ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' ').trim(); return raw.replace(/\\s*(?:₩|\\$)\\s*[\\d,.]+.*$/,'').replace(/\\s*See preview.*$/i,'').replace(/\\s*Similar items.*$/i,'').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "product_url",
            "selector": "(() => { let href = ROW.href || ROW.getAttribute('href') || ''; if (href.startsWith('//')) href = location.protocol + href; return href; })()",
            "jsCode": "(() => { let href = ROW.href || ROW.getAttribute('href') || ''; if (href.startsWith('//')) href = location.protocol + href; return href; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "product_rating",
            "selector": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const m = txt.match(/(?:^|[^0-9])([1-5]\\.\\d)(?=\\s*(?:\\d[\\d,.]*\\+?\\s*(?:sold|판매)|sold|판매|$))/i) || txt.match(/(?:^|[^0-9])([1-5]\\.\\d)(?=\\d{2,}\\+?\\s*(?:sold|판매))/i); return m ? m[1] : ''; })()",
            "jsCode": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const m = txt.match(/(?:^|[^0-9])([1-5]\\.\\d)(?=\\s*(?:\\d[\\d,.]*\\+?\\s*(?:sold|판매)|sold|판매|$))/i) || txt.match(/(?:^|[^0-9])([1-5]\\.\\d)(?=\\d{2,}\\+?\\s*(?:sold|판매))/i); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "sales_volume",
            "selector": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const m = txt.match(/(\\d[\\d,.]*\\+?\\s*(?:sold|판매))/i); return m ? m[1].trim() : ''; })()",
            "jsCode": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const m = txt.match(/(\\d[\\d,.]*\\+?\\s*(?:sold|판매))/i); return m ? m[1].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "current_price",
            "selector": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const prices = txt.match(/(?:₩\\s*[\\d,]+|\\$\\s*\\d+(?:\\.\\d{1,2})?)/g) || []; return prices[0] ? prices[0].replace(/\\s+/g, '').trim() : ''; })()",
            "jsCode": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const prices = txt.match(/(?:₩\\s*[\\d,]+|\\$\\s*\\d+(?:\\.\\d{1,2})?)/g) || []; return prices[0] ? prices[0].replace(/\\s+/g, '').trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "original_price",
            "selector": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const prices = txt.match(/(?:₩\\s*[\\d,]+|\\$\\s*\\d+(?:\\.\\d{1,2})?)/g) || []; return prices[1] ? prices[1].replace(/\\s+/g, '').trim() : ''; })()",
            "jsCode": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const prices = txt.match(/(?:₩\\s*[\\d,]+|\\$\\s*\\d+(?:\\.\\d{1,2})?)/g) || []; return prices[1] ? prices[1].replace(/\\s+/g, '').trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "shipping",
            "selector": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const m = txt.match(/((?:₩\\s*[\\d,]+\\s*이상\\s*·\\s*)?무료\\s*[^ ]*\\s*배송|Free\\s+shipping|Free[^.]{0,40}Shipping)/i); return m ? m[1].trim() : ''; })()",
            "jsCode": "(() => { const txt = (ROW.innerText || ROW.textContent || '').replace(/\\s+/g, ' '); const m = txt.match(/((?:₩\\s*[\\d,]+\\s*이상\\s*·\\s*)?무료\\s*[^ ]*\\s*배송|Free\\s+shipping|Free[^.]{0,40}Shipping)/i); return m ? m[1].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "image_url",
            "selector": "(() => { const img = ROW.querySelector('img[src], img[data-src], img[data-lazy-src]') || ROW.closest('div')?.querySelector('img[src], img[data-src], img[data-lazy-src]'); if (!img) return ''; let src = img.currentSrc || img.src || img.getAttribute('src') || img.getAttribute('data-src') || img.getAttribute('data-lazy-src') || ''; if (src.startsWith('//')) src = location.protocol + src; return src; })()",
            "jsCode": "(() => { const img = ROW.querySelector('img[src], img[data-src], img[data-lazy-src]') || ROW.closest('div')?.querySelector('img[src], img[data-src], img[data-lazy-src]'); if (!img) return ''; let src = img.currentSrc || img.src || img.getAttribute('src') || img.getAttribute('data-src') || img.getAttribute('data-lazy-src') || ''; if (src.startsWith('//')) src = location.protocol + src; return src; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "seller",
            "selector": "(() => { let node = ROW; for (let i = 0; i < 6 && node; i++, node = node.parentElement) { const s = node.querySelector('a[href*=\"/store/\"]'); if (s && s !== ROW) return (s.innerText || s.textContent || '').replace(/\\s+/g, ' ').trim(); } return ''; })()",
            "jsCode": "(() => { let node = ROW; for (let i = 0; i < 6 && node; i++, node = node.parentElement) { const s = node.querySelector('a[href*=\"/store/\"]'); if (s && s !== ROW) return (s.innerText || s.textContent || '').replace(/\\s+/g, ' ').trim(); } return ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "seller_url",
            "selector": "(() => { let node = ROW; for (let i = 0; i < 6 && node; i++, node = node.parentElement) { const s = node.querySelector('a[href*=\"/store/\"]'); if (s && s !== ROW) { let href = s.href || s.getAttribute('href') || ''; if (href.startsWith('//')) href = location.protocol + href; return href; } } return ''; })()",
            "jsCode": "(() => { let node = ROW; for (let i = 0; i < 6 && node; i++, node = node.parentElement) { const s = node.querySelector('a[href*=\"/store/\"]'); if (s && s !== ROW) { let href = s.href || s.getAttribute('href') || ''; if (href.startsWith('//')) href = location.protocol + href; return href; } } return ''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2472,
      "position_y": 220,
      "config": {
        "color": "bg-[#ff832b]"
      }
    }
  ],
  "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": "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": "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": 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",
          "wait-for-element-1",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 1392,
      "position_y": 116,
      "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": 2064,
      "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": 2400,
      "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 AliExpress Korean keyword search results for the Octoparse-equivalent product list fields: search keyword, product name, product URL, rating, sales volume, current price, original price, shipping, image URL, seller, and seller URL. Uses AliExpress URL pagination with page=1 through page=10 and appends all pages into one CSV. The filename was changed to a refined snake_case name to avoid stale appended rows from previous test runs. AliExpress may redirect locale/currency or show CAPTCHA/unusual-traffic verification; solve CAPTCHA manually in the browser if prompted. Seller fields may be blank when the current AliExpress search-card layout does not expose store links.",
      "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 10 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 656,
      "position_y": 200,
      "width": 332,
      "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: `window.scrollTo(0, 0); await new Promise(r => setTimeout(r, 300)); window.scrollTo(0, document.body....` 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-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (search_keyword, product_name, product_url, product_rating, sales_volume). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2336,
      "position_y": 200,
      "width": 340,
      "height": 137,
      "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": 2672,
      "position_y": 200,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}