{
  "version": "1.0.0",
  "exported_at": "2026-05-31T15:10:00.000Z",
  "project": {
    "name": "Suumo Used Apartment Detail Scraper",
    "description": "Extracts SUUMO used apartment / used condominium detail data from public property detail URLs. This template uses a URL-list navigation loop so users can add multiple current SUUMO detail URLs in navigate.urls. A wait-for-text guard checks for the detail-page marker 物件詳細情報 to avoid exporting redirected SUUMO library pages. Some old catalog sample URLs may redirect when listings expire.",
    "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://suumo.jp/ms/chuko/fukuoka/sc_kitakyushushiyahatanishi/nc_78035702/"
        ],
        "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": 220,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 840,
      "position_y": 220,
      "config": {
        "selector": "h1",
        "timeout": 30,
        "visible": true
      }
    },
    {
      "block_id": "wait-for-text-1",
      "block_type": "process",
      "title": "Wait for Text",
      "description": "Wait until text appears",
      "position_x": 1200,
      "position_y": 220,
      "config": {
        "text": "物件詳細情報",
        "selector": "body",
        "timeout": 20
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1560,
      "position_y": 220,
      "config": {
        "rowSelector": "body",
        "fileName": "suumo_used_property_details_scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "物件名",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['物件名']) || clean(document.querySelector('h1')?.textContent || ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "物件名_URL",
            "selector": "location.href",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "物件種別",
            "selector": "(() => { const t=document.title + ' ' + (document.querySelector('meta[name=keywords]')?.content || '') + ' ' + document.body.innerText; const m=t.match(/中古マンション/); return m ? m[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "情報提供日",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['情報提供日']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "次回更新日",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['次回更新予定日','次回更新日']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "自主管理欄",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').trim(); const hs=Array.from(ROW.querySelectorAll('h3')); const h=hs.find(x=>!clean(x.textContent).includes('特徴ピックアップ') && !clean(x.textContent).includes('物件詳細情報') && clean(x.textContent).length>0); return h ? clean(h.textContent) : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "物件画像1",
            "selector": "(() => { const imgs=Array.from(ROW.querySelectorAll('img')).map(i=>i.src).filter(src=>/resizeImage/.test(src)&&/bukken/.test(src)); return imgs[0] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "物件画像2",
            "selector": "(() => { const imgs=Array.from(ROW.querySelectorAll('img')).map(i=>i.src).filter(src=>/resizeImage/.test(src)&&/bukken/.test(src)); return imgs[1] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "物件画像3",
            "selector": "(() => { const imgs=Array.from(ROW.querySelectorAll('img')).map(i=>i.src).filter(src=>/resizeImage/.test(src)&&/bukken/.test(src)); return imgs[2] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "物件画像4",
            "selector": "(() => { const imgs=Array.from(ROW.querySelectorAll('img')).map(i=>i.src).filter(src=>/resizeImage/.test(src)&&/bukken/.test(src)); return imgs[3] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "物件画像5",
            "selector": "(() => { const imgs=Array.from(ROW.querySelectorAll('img')).map(i=>i.src).filter(src=>/resizeImage/.test(src)&&/bukken/.test(src)); return imgs[4] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "価格",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['価格']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "間取り",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['間取り']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "販売戸数",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['販売戸数']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "総戸数",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['総戸数']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "専有面積",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['専有面積']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "その他面積",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['その他面積']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "所在階_構造_階建",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['所在階/構造','所在階／構造','構造・階建て']) || [val(['所在階']), val(['構造・階建て'])].filter(Boolean).join('/'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "築年月",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['完成時期','築年月']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "住所",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['住所','所在地']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "交通",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['交通']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "会員名",
            "selector": "(() => { const text=ROW.innerText||''; const m=text.match(/[^\\s　]{0,30}(?:\\(株\\)|株式会社)[^\\s　]{0,40}/); return m ? m[0].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "問い合わせ先",
            "selector": "(() => { const text=ROW.innerText||''; const m=text.match(/TEL：?\\s*([0-9\\-]+)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "設備仕様",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').trim(); const h=Array.from(ROW.querySelectorAll('h3')).find(x=>clean(x.textContent).includes('特徴ピックアップ')); if(!h) return ''; let n=h.nextElementSibling; while(n && clean(n.textContent).length===0) n=n.nextElementSibling; return n ? clean(n.textContent).replace(/^特徴ピックアップ\\s*/,'') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "引渡可能時期",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['引渡可能時期']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "向き",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['向き']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "リフォーム",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['リフォーム']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "その他制限事項",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['その他制限事項']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "その他概要_特記事項",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['その他概要・特記事項','その他概要','特記事項']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "敷地面積",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['敷地面積']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "敷地の権利形態",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['敷地の権利形態']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "用途地域",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['用途地域']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "駐車場",
            "selector": "(() => { const clean=s=>(s||'').replace(/\\s+/g,' ').replace(/ヒント/g,'').trim(); const val=(labs)=>{ for (const th of Array.from(ROW.querySelectorAll('th'))) { const k=clean(th.textContent); if (labs.some(l=>k.includes(l))) { const td=th.nextElementSibling; return clean(td ? td.textContent.replace(/\\[[^\\]]*\\]/g,'') : ''); } } return ''; }; return val(['駐車場']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "取得時間",
            "selector": "(() => new Date().toISOString().replace('T',' ').slice(0,19))()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1920,
      "position_y": 220,
      "config": {
        "duration": 1
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2280,
      "position_y": 220,
      "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": "wait-for-element-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-element-1",
      "from_connector_id": "right",
      "to_block_id": "wait-for-text-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-text-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": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-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": 2120,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1",
          "wait-for-text-1",
          "sleep-1"
        ]
      }
    },
    {
      "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-1"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 2208,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Extracts SUUMO used apartment / used condominium detail data from public property detail URLs. This template uses a URL-list navigation loop so users can add multiple current SUUMO detail URLs in navigate.urls. A wait-for-text guard checks for the detail-page marker 物件詳細情報 to avoid exporting redirected SUUMO library pages. Some old catalog sample URLs may redirect when listings expire.",
      "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 (物件名, 物件名_URL, 物件種別, 情報提供日, 次回更新日). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1760,
      "position_y": 200,
      "width": 340,
      "height": 124,
      "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": 200,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}