{
  "version": "1.0.0",
  "exported_at": "2026-05-31T22:30:00.000Z",
  "project": {
    "name": "En Japan Job Listings Scraper",
    "description": "Extracts En Japan job recruitment information from provided employment.en-japan.com job detail URLs, including job category, industry, company name, employment type, salary, location, applicant requirements, job description, and page URL. Navigation uses a multi-URL loop over detail pages with append-mode CSV output; add more /desc_/ URLs to the Navigate block to scrape additional jobs. Attached detail pages showed no next/load-more pagination candidates.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated-en-japan-job-listings"
  },
  "blocks": [
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 120,
      "position_y": 260,
      "config": {
        "urls": [
          "https://employment.en-japan.com//desc_1180861/?PK=483A98&arearoute=1",
          "https://employment.en-japan.com//desc_1176675/?PK=483A98&arearoute=1",
          "https://employment.en-japan.com//desc_1180779/?PK=483A98&arearoute=1"
        ],
        "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": ".descArticleArea table.dataTable",
        "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": 1200,
      "position_y": 260,
      "config": {
        "rowSelector": "body",
        "fileName": "en-japan-job-listings-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "職種",
            "selector": "(()=>{const el=ROW.ownerDocument.querySelector('#globalPankuzu .pankuzu li:nth-child(2) [itemprop=\"name\"], #globalPankuzu .pankuzu li:nth-child(2) span'); return (el?.textContent||'').replace(/^転職\\s*/,'').trim();})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "業種_",
            "selector": "(()=>{const txt=(ROW.innerText||'').replace(/\\s+/g,' '); const m=txt.match(/業種\\s+(.+?)\\s+特長/); return m ? m[1].trim().split(/\\s+/)[0] : '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "会社名",
            "selector": ".endDescSorryArea .companyName",
            "attribute": "text"
          },
          {
            "name": "雇用形態",
            "selector": "(()=>{const trs=Array.from(ROW.querySelectorAll('.descArticleArea table.dataTable tr')); const tr=trs.find(t=>(t.querySelector('th')?.textContent||'').includes('雇用形態')); const mark=tr?.querySelector('td .md_mark')?.textContent.trim(); if(mark) return mark; const txt=(tr?.querySelector('td')?.innerText||'').replace(/\\s+/g,' ').trim(); return txt.split(/\\s+/)[0]||'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "給与",
            "selector": "(()=>{const trs=Array.from(ROW.querySelectorAll('.descArticleArea table.dataTable tr')); const tr=trs.find(t=>(t.querySelector('th')?.textContent||'').includes('給与')); return (tr?.querySelector('td')?.innerText||'').replace(/\\s+/g,' ').trim();})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "勤務地",
            "selector": "(()=>{const trs=Array.from(ROW.querySelectorAll('.descArticleArea table.dataTable tr')); const tr=trs.find(t=>(t.querySelector('th')?.textContent||'').includes('勤務地')); const firstLocation=tr?.querySelector('td .categoryData')?.innerText; return (firstLocation || tr?.querySelector('td')?.innerText || '').replace(/\\s+/g,' ').trim();})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "応募資格",
            "selector": "(()=>{const trs=Array.from(ROW.querySelectorAll('.descArticleArea table.dataTable tr')); const tr=trs.find(t=>(t.querySelector('th')?.textContent||'').includes('応募資格')); return (tr?.querySelector('td')?.innerText||'').replace(/\\s+/g,' ').trim();})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "仕事内容",
            "selector": "(()=>{const trs=Array.from(ROW.querySelectorAll('.descArticleArea table.dataTable tr')); const tr=trs.find(t=>(t.querySelector('th')?.textContent||'').includes('仕事内容')); const td=tr?.querySelector('td'); if(!td) return ''; const clone=td.cloneNode(true); const jobName=clone.querySelector('.jobName'); if(jobName) jobName.remove(); return (clone.innerText||clone.textContent||'').replace(/\\s+/g,' ').trim();})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "ページのURL",
            "selector": "ROW.ownerDocument.location.href",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1560,
      "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": "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": 1040,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1128,
      "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": 1488,
      "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 En Japan job recruitment information from provided employment.en-japan.com job detail URLs, including job category, industry, company name, employment type, salary, location, applicant requirements, job description, and page URL. Navigation uses a multi-URL loop over detail pages with append-mode CSV output; add more /desc_/ URLs to the Navigate block to scrape additional jobs. Attached detail pages showed no next/load-more pagination candidates.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (職種, 業種_, 雇用形態, 給与, 勤務地). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1400,
      "position_y": 240,
      "width": 340,
      "height": 121,
      "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": 1760,
      "position_y": 240,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}