{
  "version": "1.0.0",
  "exported_at": "2026-06-03T00:00:00.000Z",
  "project": {
    "name": "Stanby Jobs Scraper",
    "description": "Equivalent UScraper template for the Octoparse Stanby Jobs Scraper. Extracts Stanby Japan job detail data such as search area/keyword placeholders, title, URL, company, location, nearest station, salary, employment type, job features, job description, working hours, posting dates, and current scrape time. Navigation strategy: uses a multi-URL navigate loop for the supplied Stanby job detail URLs; add or replace URLs in navigate.urls to process up to the desired set of Stanby job pages. Attached analysis showed no next/load-more pagination on these detail pages. Expired/closed Stanby listings may return blank job fields or the closed-listing title. The detail-page wait checks DOM existence rather than visibility because Stanby renders duplicate mobile/desktop job-title elements and the first match may be hidden.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "navigate-1749001",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 120,
      "position_y": 220,
      "config": {
        "urls": [
          "https://jp.stanby.com/jobs/e5ec4e9e0dab413f5da358886b051ba2577cc3e1d63e12e881d742ee4aaddfe4?preview&tid=4766717a-9756-4345-b788-78a7f30ebbc7",
          "https://jp.stanby.com/jobs/8ae7881b53d3fb7ca6c2483276e500dd2348a95159678052a0d282f70a5c090b?preview&tid=f4c8d6cf-f64b-4bcb-ac4f-cf137ebf7275"
        ],
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "wait-for-page-load-1749002",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 480,
      "position_y": 220,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "wait-for-element-1749003",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 840,
      "position_y": 220,
      "config": {
        "selector": ".job-title h2.title, .closed-job-container, h1.error-heading",
        "timeout": 30,
        "visible": false
      }
    },
    {
      "block_id": "sleep-1749004",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1200,
      "position_y": 220,
      "config": {
        "duration": 2
      }
    },
    {
      "block_id": "structured-export-1749005",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1560,
      "position_y": 220,
      "config": {
        "rowSelector": "body",
        "fileName": "1749.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "search_area",
            "selector": "(() => { const u = new URL(location.href); return u.searchParams.get('l') || '全国'; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "search_keyword",
            "selector": "(() => { const u = new URL(location.href); return u.searchParams.get('q') || u.searchParams.get('keyword') || 'キーワード'; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "condition",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const el = document.querySelector('.icn-calendar-clock + .text, .icn-calendar-clock ~ .text'); return n(el && el.textContent); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "title",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const el = document.querySelector('.job-title h2.title') || document.querySelector('h1.error-heading') || document.querySelector('meta[property=\"og:title\"]'); return n(el ? (el.content || el.textContent) : document.title); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "url",
            "selector": "location.href",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "company_name",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const el = document.querySelector('.job-title .company'); return n(el && el.textContent); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "location",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const el = document.querySelector('.icn-distance + .text, .icn-distance ~ .text'); return n(el && el.textContent); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "nearest_station",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const h = [...document.querySelectorAll('h3')].find(e => n(e.textContent) === '最寄駅'); if (!h) return ''; let p = h.parentElement; let t = n(p ? p.innerText : ''); return t.replace(/^最寄駅\\s*/, ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "salary",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const el = document.querySelector('.icn-money + .text, .icn-money ~ .text'); return n(el && el.textContent); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "employment_type",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const el = document.querySelector('.icn-bag + .text, .icn-bag ~ .text'); return n(el && el.textContent); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_features",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const h = [...document.querySelectorAll('h2')].find(e => n(e.textContent) === '仕事の特徴'); const scope = h ? (h.closest('.card-item, .card-section, .job-detail-card, section') || h.parentElement) : document; const labels = [...scope.querySelectorAll('.feature-label')].map(e => n(e.textContent)).filter(Boolean); return [...new Set(labels)].join('、'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_description",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const h = [...document.querySelectorAll('h2')].find(e => n(e.textContent) === '仕事内容'); if (!h) return ''; const scope = h.closest('.card-item, .card-section, .job-detail-card, section') || h.parentElement; let t = n(scope ? scope.innerText : ''); return t.replace(/^仕事内容\\s*/, '').replace(/もっと見る$/, ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "working_hours",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const h = [...document.querySelectorAll('h2')].find(e => n(e.textContent) === '勤務時間'); if (!h) return ''; const scope = h.closest('.card-item, .card-section, .job-detail-card, section') || h.parentElement; let t = n(scope ? scope.innerText : ''); return t.replace(/^勤務時間\\s*/, ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "posting_time",
            "selector": "(() => { const n = s => String(s || '').replace(/\\s+/g, ' ').trim(); const t = n(document.body.innerText); const rel = t.match(/\\d+\\s*(?:分|時間|日|週間|ヶ月)前/); const start = t.match(/掲載開始日[:：]\\s*([^\\s]+(?:\\s*（[^）]+）)?)/); const updated = t.match(/最終更新日[:：]\\s*([^\\s]+(?:\\s*（[^）]+）)?)/); if (rel) return rel[0]; return [start ? '掲載開始日: ' + start[1] : '', updated ? '最終更新日: ' + updated[1] : ''].filter(Boolean).join(' / '); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "current_time",
            "selector": "new Date().toISOString()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1749006",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1920,
      "position_y": 220,
      "config": {}
    }
  ],
  "connections": [
    {
      "from_block_id": "navigate-1749001",
      "from_connector_id": "right",
      "to_block_id": "wait-for-page-load-1749002",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-page-load-1749002",
      "from_connector_id": "right",
      "to_block_id": "wait-for-element-1749003",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-element-1749003",
      "from_connector_id": "right",
      "to_block_id": "sleep-1749004",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-1749004",
      "from_connector_id": "right",
      "to_block_id": "structured-export-1749005",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "structured-export-1749005",
      "from_connector_id": "right",
      "to_block_id": "loop-continue-1749006",
      "to_connector_id": "left"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 48,
      "position_y": 116,
      "width": 1400,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1749001",
          "wait-for-page-load-1749002",
          "wait-for-element-1749003",
          "sleep-1749004"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1488,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1749005"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 1848,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1749006"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Equivalent UScraper template for the Octoparse Stanby Jobs Scraper. Extracts Stanby Japan job detail data such as search area/keyword placeholders, title, URL, company, location, nearest station, salary, employment type, job features, job description, working hours, posting dates, and current scrape time. Navigation strategy: uses a multi-URL navigate loop for the supplied Stanby job detail URLs; add or replace URLs in navigate.urls to process up to the desired set of Stanby job pages. Attached analysis showed no next/load-more pagination on these detail pages. Expired/closed Stanby listings may return blank job fields or the closed-listing title. The detail-page wait checks DOM existence rather than visibility because Stanby renders duplicate mobile/desktop job-title elements and the first match may be hidden.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-structured-export-1749005",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (search_area, search_keyword, condition, title, url). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1760,
      "position_y": 200,
      "width": 340,
      "height": 130,
      "z_index": 22,
      "data": {
        "block_id": "structured-export-1749005"
      }
    },
    {
      "id": "note-block-loop-continue-1749006",
      "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": 200,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1749006"
      }
    }
  ]
}