{
  "version": "1.0.0",
  "exported_at": "2026-06-02T07:45:00.000Z",
  "project": {
    "name": "ReKatsu Job Listing Scraper",
    "description": "Extracts ReKatsu job-detail data equivalent to the Octoparse template: company name, industry, job type, salary, location, employment type, hiring-target tags, job title, job description, and page URL. Navigation uses a multi-URL detail-page loop with append mode; add more /career/company/recruit/{id}/ URLs to scrape more jobs. A scoped JavaScript parser extracts fields only from the current job detail area after the h1 to avoid sidebar/search/recommendation pollution. Public pages may occasionally show CAPTCHA or login prompts.",
    "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://re-katsu.jp/career/company/recruit/36892/",
          "https://re-katsu.jp/career/company/recruit/31830/",
          "https://re-katsu.jp/career/company/recruit/31157/",
          "https://re-katsu.jp/career/company/recruit/43017/",
          "https://re-katsu.jp/career/company/recruit/38813/",
          "https://re-katsu.jp/career/company/recruit/33317/",
          "https://re-katsu.jp/career/company/recruit/40752/"
        ],
        "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": 260,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 840,
      "position_y": 260,
      "config": {
        "selector": "h1",
        "timeout": 30,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 1200,
      "position_y": 260,
      "config": {
        "jsCode": "window.__rekatsuClean = function(s) { return (s || '').replace(/\\s+/g, ' ').trim(); }; window.__rekatsuAfterH1 = function() { const clean = window.__rekatsuClean; const txt = clean(document.body.innerText || ''); const h = clean(document.querySelector('h1') ? document.querySelector('h1').innerText : ''); const p = h ? txt.indexOf(h) : -1; return p >= 0 ? clean(txt.slice(p + h.length)) : txt; }; window.__rekatsuHeader = function() { const clean = window.__rekatsuClean; let s = window.__rekatsuAfterH1(); const stops = ['この求人の概要', '企業からのメッセージ', '募集要項', '社員の声', 'アピールポイント', '応募・選考について']; let min = -1; for (const stop of stops) { const i = s.indexOf(stop); if (i > 0 && (min < 0 || i < min)) min = i; } if (min > 0) s = s.slice(0, min); return clean(s); }; window.__rekatsuExtract = function(field) { const clean = window.__rekatsuClean; const meta = document.querySelector('meta[name=\"description\"]') ? document.querySelector('meta[name=\"description\"]').content : ''; const h1 = clean(document.querySelector('h1') ? document.querySelector('h1').innerText : ''); const header = window.__rekatsuHeader(); const after = window.__rekatsuAfterH1(); const normSalary = function(v) { return clean(v).replace(/\\s+/g, '').replace(/〜/g, '～').replace(/[\\-－]/g, '～'); }; if (field === 'company_name') { let m = meta.match(/^(.+?)の【/); if (m) return clean(m[1]); m = meta.match(/^(.+?)の.+?の求人・転職情報/); if (m) return clean(m[1]); const titlePart = (document.title || '').split('/')[0] || ''; return clean(titlePart); } if (field === 'job_title') { const company = window.__rekatsuExtract('company_name'); if (company && h1.endsWith(company)) return clean(h1.slice(0, h1.length - company.length)); if (company && h1.includes(company)) return clean(h1.replace(company, '')); if (company && meta.startsWith(company + 'の')) { const rest = meta.slice((company + 'の').length); const marker = 'の求人・転職情報'; const i = rest.indexOf(marker); return clean(i >= 0 ? rest.slice(0, i) : rest); } const mt = meta.match(/(【[^】]+】.+?)の求人・転職情報/); return mt ? clean(mt[1]) : h1; } if (field === 'industry') { const m = header.match(/業種\\s+([\\s\\S]*?)\\s+職種\\s+/); return m ? clean(m[1]).replace(/\\s*／\\s*/g, '／') : ''; } if (field === 'job_type') { const m = header.match(/職種\\s+([\\s\\S]*?)\\s+勤務地\\s+/); return m ? clean(m[1]) : ''; } if (field === 'location') { const m = header.match(/勤務地\\s+([\\s\\S]*?)$/); return m ? clean(m[1]).replace(/\\s*／\\s*/g, '／') : ''; } if (field === 'employment_type') { const m = header.match(/(正社員|契約社員|派遣社員|紹介予定派遣|アルバイト|パート|業務委託)/); return m ? m[1] : ''; } if (field === 'hiring_target') { const beforeIndustry = header.split(/業種\\s+/)[0] || header; const labels = ['既卒・社会人経験不問', '第二新卒歓迎', '完全週休2日制', '残業少なめ（1日1時間以内）', '土日面接OK', '転勤の心配なし', '職種未経験歓迎', '業種未経験歓迎', '職種経験者優遇', '上場', 'Ｒｅ就活ＷＯＭＡＮ']; return labels.filter(x => beforeIndustry.includes(x)).join(','); } if (field === 'annual_salary') { let m = after.match(/給与\\s+初年度想定年収[:：]?\\s*([0-9０-９,，]+\\s*[～〜\\-－]\\s*[0-9０-９,，]+\\s*万円)/); if (m) return normSalary(m[1]); m = after.match(/初年度想定年収[:：]?\\s*([0-9０-９,，]+\\s*[～〜\\-－]\\s*[0-9０-９,，]+\\s*万円)/); if (m) return normSalary(m[1]); m = after.match(/年収[:：]?\\s*([0-9０-９,，]+\\s*[～〜\\-－]\\s*[0-9０-９,，]+\\s*万円)/); return m ? normSalary(m[1]) : ''; } if (field === 'job_description') { const m = after.match(/仕事内容\\s+([\\s\\S]*?)(?=\\s+応募条件\\s+|\\s+勤務地\\s+|\\s+勤務時間\\s+|\\s+休日・休暇\\s+)/); return m ? clean(m[1]) : ''; } if (field === 'page_url') return window.location.href; return ''; };",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1560,
      "position_y": 260,
      "config": {
        "rowSelector": "body",
        "fileName": "re_katsu_job_listing_scraper_final.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "company_name",
            "selector": "window.__rekatsuExtract('company_name')",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "industry",
            "selector": "window.__rekatsuExtract('industry')",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_type",
            "selector": "window.__rekatsuExtract('job_type')",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "annual_salary",
            "selector": "window.__rekatsuExtract('annual_salary')",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "location",
            "selector": "window.__rekatsuExtract('location')",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "employment_type",
            "selector": "window.__rekatsuExtract('employment_type')",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "hiring_target",
            "selector": "window.__rekatsuExtract('hiring_target')",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_title",
            "selector": "window.__rekatsuExtract('job_title')",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_description",
            "selector": "window.__rekatsuExtract('job_description')",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "page_url",
            "selector": "window.__rekatsuExtract('page_url')",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1920,
      "position_y": 260,
      "config": {
        "duration": 1,
        "color": "bg-[#8d8d8d]"
      }
    },
    {
      "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-[#ff832b]"
      }
    }
  ],
  "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": "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": 156,
      "width": 2120,
      "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": 1128,
      "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": 1488,
      "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": "Extracts ReKatsu job-detail data equivalent to the Octoparse template: company name, industry, job type, salary, location, employment type, hiring-target tags, job title, job description, and page URL. Navigation uses a multi-URL detail-page loop with append mode; add more /career/company/recruit/{id}/ URLs to scrape more jobs. A scoped JavaScript parser extracts fields only from the current job detail area after the h1 to avoid sidebar/search/recommendation pollution. Public pages may occasionally show CAPTCHA or login prompts.",
      "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: `window.__rekatsuClean = function(s) { return (s || '').replace(/\\s+/g, ' ').trim(); }; window.__reka...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1400,
      "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 (company_name, industry, job_type, annual_salary, location). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1760,
      "position_y": 240,
      "width": 340,
      "height": 133,
      "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"
      }
    }
  ]
}