{
  "version": "1.0.0",
  "exported_at": "2026-06-02T16:30:00.000Z",
  "project": {
    "name": "BAITORU Job Scraper",
    "description": "Extracts BAITORU brief job information fields equivalent to the Octoparse BAITORU Job Scraper: カテゴリー, 職種, バイト名, 詳細リンク, 店名, 勤務地, 勤務種類, 給与, 勤務時間, テキスト. The provided BAITORU sample URLs currently return expired/HTTP 404 job-detail pages, so this best-effort template extracts the visible recommended job cards from each supplied BAITORU URL. Navigation uses a known URL list with loop-continue and append mode; no next/load-more pagination candidates were detected in the attached page analysis. CAPTCHA/manual solving may be required.",
    "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://www.baitoru.com/tokai/jlist/aichi/nagoyashi/nagoyashinakaku/osu/job126879673/",
          "https://www.baitoru.com/tokai/jlist/aichi/nagoyashi/nagoyashimoriyamaku/job129034682/",
          "https://www.baitoru.com/tokai/jlist/aichi/owariarea/setoshi/job129034653/"
        ],
        "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
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 840,
      "position_y": 260,
      "config": {
        "duration": 2
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1200,
      "position_y": 260,
      "config": {
        "selector": ".recommend-jobList",
        "timeout": 30,
        "visible": true
      }
    },
    {
      "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": ".recommend-jobList",
        "fileName": "baitoru_search.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "カテゴリー",
            "selector": "(() => { const lines=(ROW.innerText||'').split(/\\n+/).map(s=>s.trim()).filter(Boolean); const jobLine=lines.find(l=>/^\\[[^\\]]+\\]/.test(l)&&!/^\\[(勤務地|面接地)\\]/.test(l)&&!/(時給|日給|月給|年俸|完全出来高制|報酬|給与|円)/.test(l)&&!/\\d{1,2}:\\d{2}/.test(l))||''; const cleaned=jobLine.replace(/^\\[[^\\]]+\\]\\s*/,'').replace(/^[①②③④⑤⑥⑦⑧⑨]+\\s*/,'').trim(); return (cleaned.split(/[、,，]/)[0]||'').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "職種",
            "selector": "(() => { const lines=(ROW.innerText||'').split(/\\n+/).map(s=>s.trim()).filter(Boolean); const jobLine=lines.find(l=>/^\\[[^\\]]+\\]/.test(l)&&!/^\\[(勤務地|面接地)\\]/.test(l)&&!/(時給|日給|月給|年俸|完全出来高制|報酬|給与|円)/.test(l)&&!/\\d{1,2}:\\d{2}/.test(l))||''; return jobLine.replace(/^\\[[^\\]]+\\]\\s*/,'').replace(/^[①②③④⑤⑥⑦⑧⑨]+\\s*/,'').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "バイト名",
            "selector": "h3",
            "attribute": "text"
          },
          {
            "name": "詳細リンク",
            "selector": "(() => { return ROW.querySelector('h3 a')?.href || ROW.querySelector('a[href*=\"/job\"]')?.href || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "店名",
            "selector": "(() => { const lines=(ROW.innerText||'').split(/\\n+/).map(s=>s.trim()).filter(Boolean).map(s=>s.replace(/キープする|詳しく見る/g,'').trim()).filter(Boolean); const title=(ROW.querySelector('h3')?.innerText||'').trim(); const i=lines.indexOf(title); return i>=0 ? (lines[i+1]||'') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "勤務地",
            "selector": "(() => { const lines=(ROW.innerText||'').split(/\\n+/).map(s=>s.trim()).filter(Boolean); const line=lines.find(l=>/^\\[(勤務地|面接地)\\]/.test(l))||''; return line.replace(/^\\[(勤務地|面接地)\\]\\s*/,'').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "勤務種類",
            "selector": "(() => { const lines=(ROW.innerText||'').split(/\\n+/).map(s=>s.trim()).filter(Boolean); const line=lines.find(l=>/^\\[[^\\]]+\\]/.test(l)&&!/^\\[(勤務地|面接地)\\]/.test(l)&&!/(時給|日給|月給|年俸|完全出来高制|報酬|給与|円)/.test(l)&&!/\\d{1,2}:\\d{2}/.test(l)) || lines.find(l=>/^\\[[^\\]]+\\]/.test(l)&&/(時給|日給|月給|年俸|完全出来高制|報酬|給与|円)/.test(l)) || ''; const m=line.match(/^\\[([^\\]]+)\\]/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "給与",
            "selector": "(() => { const lines=(ROW.innerText||'').split(/\\n+/).map(s=>s.trim()).filter(Boolean); const line=lines.find(l=>/^\\[[^\\]]+\\]/.test(l)&&/(時給|日給|月給|年俸|完全出来高制|報酬|給与|円)/.test(l)) || lines.find(l=>/(時給|日給|月給|年俸|完全出来高制|報酬|給与|円)/.test(l)) || ''; return line.replace(/^\\[[^\\]]+\\]\\s*/,'').replace(/^[①②③④⑤⑥⑦⑧⑨]+\\s*/,'').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "勤務時間",
            "selector": "(() => { const lines=(ROW.innerText||'').split(/\\n+/).map(s=>s.trim()).filter(Boolean); const line=lines.find(l=>/\\d{1,2}:\\d{2}/.test(l))||''; return line.replace(/^\\[[^\\]]+\\]\\s*/,'').replace(/^[①②③④⑤⑥⑦⑧⑨]+\\s*/,'').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "テキスト",
            "selector": "(() => { const lines=(ROW.innerText||'').split(/\\n+/).map(s=>s.trim()).filter(Boolean).map(s=>s.replace(/キープする|詳しく見る/g,'').trim()).filter(Boolean); const timeIndex=lines.findIndex(l=>/\\d{1,2}:\\d{2}/.test(l)); const value=timeIndex>=0 ? lines.slice(timeIndex+1).join('、') : lines.slice(-3).join('、'); return value.replace(/キープする|詳しく見る/g,'').replace(/、{2,}/g,'、').replace(/^[、\\s]+|[、\\s]+$/g,'').trim(); })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1920,
      "position_y": 260,
      "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": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-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": 1400,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1",
          "wait-for-element-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": 1848,
      "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 BAITORU brief job information fields equivalent to the Octoparse BAITORU Job Scraper: カテゴリー, 職種, バイト名, 詳細リンク, 店名, 勤務地, 勤務種類, 給与, 勤務時間, テキスト. The provided BAITORU sample URLs currently return expired/HTTP 404 job-detail pages, so this best-effort template extracts the visible recommended job cards from each supplied BAITORU URL. Navigation uses a known URL list with loop-continue and append mode; no next/load-more pagination candidates were detected in the attached page analysis. CAPTCHA/manual solving may be required.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-navigate-1",
      "element_type": "note",
      "title": "Note: Navigate",
      "content": "Multi-URL loop over 3 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 320,
      "position_y": 240,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "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": 1760,
      "position_y": 240,
      "width": 340,
      "height": 122,
      "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": 2120,
      "position_y": 240,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}