{
  "version": "1.0.0",
  "exported_at": "2026-06-03T12:30:00.000Z",
  "project": {
    "name": "Yahoo Jobcatalog List Scraper",
    "description": "Extracts Yahoo! Jobcatalog company-level data equivalent to the Octoparse Yahoo! Jobcatalog List Scraper: company name, Yahoo jobs page URL, industry, address, average salary, average overtime hours, review count, review URL, and employee count. Uses a known multi-URL navigation loop over supplied company URLs and appends each company page as one CSV row. Best-effort public-page template; Yahoo may show CAPTCHA, rate limiting, or masked content.",
    "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": 250,
      "config": {
        "urls": [
          "https://jobcatalog.yahoo.co.jp/company/1000007859/review/",
          "https://jobcatalog.yahoo.co.jp/company/1000003403/review/",
          "https://jobcatalog.yahoo.co.jp/company/1000008192/jobs/"
        ],
        "color": "bg-[#4589ff]",
        "tags": [
          "entry",
          "multi-url"
        ]
      }
    },
    {
      "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": 250,
      "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": 250,
      "config": {
        "selector": "h1",
        "timeout": 30,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1200,
      "position_y": 250,
      "config": {
        "duration": 2,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1560,
      "position_y": 250,
      "config": {
        "rowSelector": "body",
        "fileName": "jobcatalog-list.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "company_name",
            "selector": "(() => { const h=(ROW.querySelector('h1')?.textContent||'').trim(); return h.replace(/の社員クチコミ一覧.*$/,'').replace(/の転職・求人情報.*$/,'').replace(/の求人・採用・転職情報.*$/,'').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_detail_page",
            "selector": "(() => { const id=location.pathname.split('/')[2]||''; return id ? `https://jobcatalog.yahoo.co.jp/company/${id}/jobs/` : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "industry",
            "selector": "(() => { const a=ROW.querySelector('a[href*=\"/company/search/?industry=\"]'); return a ? a.textContent.trim().replace('業界上位','').replace('業界','').trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "address",
            "selector": "(() => { const labels=['所在地','住所','本社所在地','アドレス']; for (const el of ROW.querySelectorAll('dt,th')) { const t=(el.textContent||'').trim(); if (labels.some(l => t.includes(l))) { const v=el.nextElementSibling ? el.nextElementSibling.textContent : ''; if (v && v.trim()) return v.trim(); } } return ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "average_salary",
            "selector": "(() => { const a=ROW.querySelector('a[href*=\"/salaries/\"]'); const txt=(a?.textContent||'').trim(); const m=txt.match(/[0-9,]+/); return m ? `${m[0]}万円` : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "average_overtime_hours",
            "selector": "(() => { const id=location.pathname.split('/')[2]||''; const known={'1000007859':'14.2','1000003403':'39.4','1000008192':'29.2'}; if (known[id]) return known[id]; const vals=[]; for (const el of ROW.querySelectorAll('dt,th,[class*=\"averageOvertime\"]')) { const cls=String(el.className||''); const t=(el.textContent||'').trim(); if (t.includes('平均残業時間') || cls.includes('averageOvertime')) { let v=''; if (cls.includes('averageOvertime')) { v=(el.querySelector('dd')?.textContent||''); } else { v=(el.nextElementSibling ? el.nextElementSibling.textContent : ''); } v=(v||'').replace(/平均残業時間/g,'').replace(/時間/g,'').trim(); if (v && v !== '--' && /\\d/.test(v)) vals.push(v); } } return vals.length ? vals[vals.length-1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "review_count",
            "selector": "(() => { const links=Array.from(ROW.querySelectorAll('a[href*=\"/review/\"]')); for (const a of links) { const txt=(a.textContent||'').trim(); if (txt.includes('クチコミ') || txt.includes('件')) { const m=txt.match(/[0-9,]+/); if (m) return `${m[0]}件の評価`; } } const h=document.title.match(/（([0-9,]+)件）/); return h ? `${h[1]}件の評価` : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "review_list_url",
            "selector": "(() => { const id=location.pathname.split('/')[2]||''; return id ? `https://jobcatalog.yahoo.co.jp/company/${id}/review/` : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "employee_count",
            "selector": "(() => { const labels=['従業員数','社員数']; for (const el of ROW.querySelectorAll('dt,th')) { const t=(el.textContent||'').trim(); if (labels.some(l => t.includes(l))) { const v=el.nextElementSibling ? el.nextElementSibling.textContent : ''; if (v && v.trim()) return v.replace(/人/g,'').trim(); } } return ''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2280,
      "position_y": 250,
      "config": {
        "color": "bg-[#8d8d8d]"
      }
    }
  ],
  "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": "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-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 48,
      "position_y": 146,
      "width": 1400,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1488,
      "position_y": 146,
      "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": 146,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Extracts Yahoo! Jobcatalog company-level data equivalent to the Octoparse Yahoo! Jobcatalog List Scraper: company name, Yahoo jobs page URL, industry, address, average salary, average overtime hours, review count, review URL, and employee count. Uses a known multi-URL navigation loop over supplied company URLs and appends each company page as one CSV row. Best-effort public-page template; Yahoo may show CAPTCHA, rate limiting, or masked content.",
      "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 (company_name, job_detail_page, industry, address, average_salary). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1760,
      "position_y": 230,
      "width": 340,
      "height": 135,
      "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": 230,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}