{
  "version": "1.0.0",
  "exported_at": "2026-06-03T06:30:00.000Z",
  "project": {
    "name": "ããƒ³æ¾é Recruitment Information",
    "description": "Extracts En Haken recruitment/job detail information from a provided list of haken.en-japan.com job URLs. Uses a multi-URL navigation loop with append export and skips expired/404 job pages that no longer contain a job heading. Replace or extend the URL list with current /w_.../ job detail URLs to scrape additional records.",
    "color": "bg-[#42be65]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 120,
      "position_y": 220,
      "config": {
        "urls": [
          "https://haken.en-japan.com/w_89861305/",
          "https://haken.en-japan.com/w_90615100/",
          "https://haken.en-japan.com/w_110174714/",
          "https://haken.en-japan.com/w_110157889/",
          "https://haken.en-japan.com/w_109435919/",
          "https://haken.en-japan.com/w_109031527/"
        ],
        "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": 456,
      "position_y": 220,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "element-exists-1",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 792,
      "position_y": 220,
      "config": {
        "selector": "h1"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1128,
      "position_y": 520,
      "config": {
        "selector": "body",
        "timeout": 20,
        "visible": true
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1464,
      "position_y": 520,
      "config": {
        "rowSelector": "body",
        "fileName": "1764.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "title",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); return n((ROW.querySelector('h1')||ROW.querySelector('.jobName')||ROW.querySelector('title')||{}).textContent).replace(/｜.*$/,''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "detail_url",
            "selector": "location.href",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "point_1",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const a=[...ROW.querySelectorAll('.pointArea .text,.point .text,.catch,.copyBase .copy,.jobPoint,.appeal,.lead')].map(e=>n(e.textContent)).filter(Boolean); return a[0] || n(document.querySelector('meta[name=\"description\"]')?.content || ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "point_2",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const a=[...ROW.querySelectorAll('.pointArea .text,.point .text,.catch,.copyBase .copy,.jobPoint,.appeal,.lead')].map(e=>n(e.textContent)).filter(Boolean); return a[1] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "application_id",
            "selector": "(() => { const t=ROW.innerText||''; const m=t.match(/No\\.?\\s*([A-Za-z0-9_\\-Ａ-Ｚａ-ｚ０-９]+)/); return m ? 'No.' + m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "posted_date",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; const v=val(['掲載日','掲載開始日','更新日']); if(v)return v; const m=(ROW.innerText||'').match(/20\\d{2}[\\/年.-]\\d{1,2}[\\/月.-]\\d{1,2}日?/); return m?m[0]:''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "client_company",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['派遣先','勤務先','就業先']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "match_score",
            "selector": "(() => { const t=ROW.innerText||''; const m=t.match(/マッチ度\\D*(\\d{1,3})/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "nearest_station",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['最寄り駅','アクセス','交通']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "location",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['勤務地','所在地','勤務場所']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "work_days",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['曜日頻度','勤務曜日','就業曜日']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "work_time",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['時間','勤務時間','就業時間']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "period",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['期間','勤務期間','就業期間']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "hourly_wage",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['時給','給与','給料']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "transportation",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['交通費','交通費支給']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_category",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['職種','仕事内容1','仕事の概要']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_description",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['仕事内容','業務内容','お仕事内容']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "qualifications",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; return val(['応募資格','応募条件','対象となる方','資格']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "agency_url",
            "selector": "(() => { const a=[...ROW.querySelectorAll('a[href*=\"/c_\"]')].find(x=>/\\/c_\\d+\\//.test(x.href)); return a ? a.href : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "agency_name",
            "selector": "(() => { const n=s=>(s||'').replace(/\\s+/g,' ').trim(); const val=(labels)=>{labels=[].concat(labels); for(const lab of labels){ for(const h of ROW.querySelectorAll('th,dt,.item,.label,.dataTitle,.title')){ const ht=n(h.textContent).replace(/[：:]/g,''); if(ht===lab || ht.includes(lab)){ const r=h.closest('tr,dl,li,.dataSet,.detailSet,.conditionSet')||h.parentElement; const d=r&&r.querySelector('td,dd,.data,.text,.content'); if(d&&d!==h)return n(d.textContent); const c=r?r.cloneNode(true):null; if(c){c.querySelectorAll('th,dt,.item,.label,.dataTitle,.title').forEach(x=>x.remove()); const out=n(c.textContent); if(out)return out;}}}} return '';}; const v=val(['派遣会社','派遣会社名']); if(v)return v; const a=[...ROW.querySelectorAll('a[href*=\"/c_\"]')].find(x=>/\\/c_\\d+\\//.test(x.href)); return a ? n(a.textContent) : ''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1800,
      "position_y": 520,
      "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": "element-exists-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "true",
      "to_block_id": "wait-for-element-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "false",
      "to_block_id": "loop-continue-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": 116,
      "width": 1328,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 720,
      "position_y": 116,
      "width": 1328,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "element-exists-1",
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1392,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Extracts En Haken recruitment/job detail information from a provided list of haken.en-japan.com job URLs. Uses a multi-URL navigation loop with append export and skips expired/404 job pages that no longer contain a job heading. Replace or extend the URL list with current /w_.../ job detail URLs to scrape additional records.",
      "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 `h1`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 992,
      "position_y": 200,
      "width": 340,
      "height": 131,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (title, detail_url, point_1, point_2, application_id). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1664,
      "position_y": 500,
      "width": 340,
      "height": 131,
      "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": 2000,
      "position_y": 500,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}