{
  "version": "1.0.0",
  "exported_at": "2026-06-02T00:00:00.000Z",
  "project": {
    "name": "Jobkorea Job Scraper",
    "description": "Jobkorea job listing scraper inferred from the Octoparse catalog entry. Extracts one row per job posting: company, title, job URL, experience, education, application method/how, location, salary, registration/deadline, and listing text. Pagination uses a finite URL-list loop for Jobkorea Search Page_No=1-10 to avoid infinite next-button loops. Output filename changed to jobkorea_job_scraper.csv to avoid appending to stale test-run CSVs from earlier failed templates.",
    "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": 240,
      "config": {
        "urls": [
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=1",
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=2",
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=3",
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=4",
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=5",
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=6",
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=7",
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=8",
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=9",
          "https://www.jobkorea.co.kr/Search/?stext=%EA%B0%9C%EB%B0%9C&tabType=recruit&Page_No=10"
        ],
        "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": 480,
      "position_y": 240,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 840,
      "position_y": 240,
      "config": {
        "selector": "a[href*='/Recruit/GI_Read'], a[href*='Recruit/GI_Read']",
        "timeout": 30,
        "visible": false
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 1200,
      "position_y": 240,
      "config": {
        "jsCode": "(() => { document.querySelectorAll('.uscraper-job-row').forEach(e => e.classList.remove('uscraper-job-row')); const links = Array.from(document.querySelectorAll('a[href*=\"/Recruit/GI_Read\"], a[href*=\"Recruit/GI_Read\"]')); const seenJobs = new Set(); const markedRoots = new Set(); function keyFor(a) { try { const u = new URL(a.href, location.href); const pathId = (u.pathname.match(/GI_Read\\/?(\\d+)?/i) || [])[1] || u.pathname; return pathId + '|' + (u.searchParams.get('GI_No') || u.searchParams.get('Gno') || ''); } catch (e) { return a.href; } } function cardFor(a) { let el = a; for (let i = 0; i < 8 && el && el !== document.body; i++, el = el.parentElement) { const txt = (el.textContent || '').replace(/\\s+/g, ' ').trim(); const linkCount = el.querySelectorAll('a[href*=\"/Recruit/GI_Read\"], a[href*=\"Recruit/GI_Read\"]').length; if (txt.length >= 45 && linkCount >= 1 && linkCount <= 6) return el; } return a.closest('li, tr, article, .item, .list-item, .recruit-item, .devloopArea, [class*=\"recruit\"], [class*=\"Recruit\"], [class*=\"job\"], [class*=\"Job\"]') || a; } for (const a of links) { const k = keyFor(a); if (seenJobs.has(k)) continue; seenJobs.add(k); const root = cardFor(a); if (!root || markedRoots.has(root)) continue; markedRoots.add(root); root.classList.add('uscraper-job-row'); } return document.querySelectorAll('.uscraper-job-row').length; })();",
        "waitForCompletion": true,
        "timeout": 10
      }
    },
    {
      "block_id": "wait-for-element-2",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1560,
      "position_y": 240,
      "config": {
        "selector": ".uscraper-job-row",
        "timeout": 20,
        "visible": false
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1920,
      "position_y": 240,
      "config": {
        "rowSelector": ".uscraper-job-row",
        "fileName": "jobkorea_job_scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "company",
            "selector": "(() => { const links = Array.from(ROW.querySelectorAll('a[href*=\"/Recruit/GI_Read\"], a[href*=\"Recruit/GI_Read\"]')).map(a => a.textContent.replace(/\\s+/g, ' ').trim()).filter(Boolean); const title = links.find(t => /채용|개발|모집|엔지니어|기획|디자이너|담당|경력|신입/.test(t)) || links[0] || ''; const company = links.find(t => t !== title && /(㈜|\\(주\\)|주식회사|유한회사|[가-힣A-Za-z0-9]+㈜)/.test(t) && t.length <= 50) || links.find(t => t !== title && t.length <= 35) || ''; return company; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "title",
            "selector": "(() => { const links = Array.from(ROW.querySelectorAll('a[href*=\"/Recruit/GI_Read\"], a[href*=\"Recruit/GI_Read\"]')).map(a => a.textContent.replace(/\\s+/g, ' ').trim()).filter(Boolean); return links.find(t => /채용|개발|모집|엔지니어|기획|디자이너|담당|경력|신입/.test(t) && !/^㈜/.test(t) && !/㈜$/.test(t)) || links[0] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_url",
            "selector": "(() => { const a = ROW.querySelector('a[href*=\"/Recruit/GI_Read\"], a[href*=\"Recruit/GI_Read\"]'); return a ? a.href : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "experience",
            "selector": "(() => { const t = ROW.textContent.replace(/\\s+/g, ' ').trim(); const m = t.match(/(신입·경력\\d*년?↑?|신입\\s*·\\s*경력|경력\\d+년↑|경력\\s*\\d+년↑|경력무관|신입|경력|무관)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "education",
            "selector": "(() => { const t = ROW.textContent.replace(/\\s+/g, ' ').trim(); const m = t.match(/(학력무관|고졸|초대졸|대졸|대학교졸업|석사|박사|졸업예정)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "how",
            "selector": "(() => { const t = ROW.textContent.replace(/\\s+/g, ' ').trim(); const m = t.match(/(즉시 지원|홈페이지 지원|입사지원|온라인 지원|정규직|계약직|인턴|아르바이트|프리랜서|파견직|위촉직)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "location",
            "selector": "(() => { const t = ROW.textContent.replace(/\\s+/g, ' ').trim(); const m = t.match(/((서울|경기|인천|부산|대구|대전|광주|울산|세종|강원|충북|충남|전북|전남|경북|경남|제주|해외)\\s*[가-힣A-Za-z0-9\\s]+?(구|군|시|동|외\\s*\\d+)?)/); return m ? m[1].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "salary",
            "selector": "(() => { const t = ROW.textContent.replace(/\\s+/g, ' ').trim(); const m = t.match(/(회사내규|면접 후 결정|추후협의|연봉\\s*[0-9,]+\\s*만원?|월급\\s*[0-9,]+\\s*만원?|시급\\s*[0-9,]+원?|일급\\s*[0-9,]+원?)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "registered_at",
            "selector": "(() => { const t = ROW.textContent.replace(/\\s+/g, ' ').trim(); const m = t.match(/(\\d{2}\\/\\d{2}\\([^)]+\\)\\s*등록|\\d+시간 전 등록|\\d+일 전 등록|오늘 등록|어제 등록)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "deadline",
            "selector": "(() => { const t = ROW.textContent.replace(/\\s+/g, ' ').trim(); const m = t.match(/(상시채용|\\d{2}\\/\\d{2}\\([^)]+\\)\\s*마감|채용시 마감|채용시|D-\\d+)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "listing_text",
            "selector": "ROW.textContent.replace(/\\s+/g, ' ').trim()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 2280,
      "position_y": 240,
      "config": {
        "duration": 1
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2640,
      "position_y": 240,
      "config": {}
    }
  ],
  "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": "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": "wait-for-element-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-element-2",
      "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": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-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": 136,
      "width": 2480,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1",
          "wait-for-element-2",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 1128,
      "position_y": 136,
      "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": 136,
      "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": 2568,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Jobkorea job listing scraper inferred from the Octoparse catalog entry. Extracts one row per job posting: company, title, job URL, experience, education, application method/how, location, salary, registration/deadline, and listing text. Pagination uses a finite URL-list loop for Jobkorea Search Page_No=1-10 to avoid infinite next-button loops. Output filename changed to jobkorea_job_scraper.csv to avoid appending to stale test-run CSVs from earlier failed templates.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-inject-javascript-1",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(() => { document.querySelectorAll('.uscraper-job-row').forEach(e => e.classList.remove('uscraper-jo...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1400,
      "position_y": 220,
      "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 (company, title, job_url, experience, education). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2120,
      "position_y": 220,
      "width": 340,
      "height": 129,
      "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": 2840,
      "position_y": 220,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}