{
  "version": "1.0.0",
  "exported_at": "2026-06-03T10:45:00.000Z",
  "project": {
    "name": "SUUMO Rental Property Details",
    "description": "Extracts SUUMO rental property detail fields from multiple supplied rental detail URLs. Uses a known URL list loop with append-mode CSV output. The wait step targets body rather than h1 because some SUUMO /chintai/bc_... URLs redirect to library/expired pages where h1 may not be visible. Some room-level fields may be blank if SUUMO no longer exposes the active detail page.",
    "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/chintai/bc_100397164339/",
          "https://suumo.jp/chintai/bc_100438781700/",
          "https://suumo.jp/chintai/bc_100438847657/"
        ],
        "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": "body",
        "timeout": 30,
        "visible": false
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1200,
      "position_y": 220,
      "config": {
        "rowSelector": "body",
        "fileName": "suumo-rental-property-detail.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "property_name_url",
            "selector": "(()=>location.href)()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "property_name",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();const h=c(document.querySelector('h1')?.textContent||document.title);return h.replace(/の賃貸物件情報$/,'').replace(/の賃貸物件・価格情報.*$/,'').replace(/\\/北海道.*$/,'');})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "inquiry_phone",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();const tel=document.querySelector('a[href^=\"tel:\"]');if(tel)return c(tel.textContent||tel.getAttribute('href').replace('tel:',''));const m=c(document.body.innerText).match(/0\\d{1,4}-\\d{1,4}-\\d{3,4}/);return m?m[0]:'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "rent_initial_cost",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();const emp=[...document.querySelectorAll('.property_view_main-emphasis,.property_view_note-emphasis')].map(e=>c(e.textContent)).filter(Boolean).join(' / ');if(emp)return emp;const r=document.querySelector('tr.caseBukken');if(r){const m=c(r.textContent).match(/[0-9.]+万円(?:（[^）]*）)?/);return m?m[0]:'';}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "room_features_facilities",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();const items=[...document.querySelectorAll('.features-item,.inline_list li')].map(e=>c(e.textContent)).filter(Boolean);return [...new Set(items)].join('、');})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "floor_plan_details",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();const val=ls=>{ls=[].concat(ls);for(const th of document.querySelectorAll('th,dt')){const k=c(th.textContent);if(ls.some(l=>k.includes(l))){let vals=[];let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))vals.push(c(n.textContent));n=n.nextElementSibling;}if(vals.length)return vals.join(' / ');}}return '';};let v=val(['間取り詳細','間取り']);if(v)return v;const r=document.querySelector('tr.caseBukken');if(r){const m=c(r.textContent).match(/[0-9]+[A-Z]*LDK|[0-9]+DK|[0-9]+K/);return m?m[0]:'';}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "structure",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('構造')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "floor",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){const k=c(th.textContent);if(k.includes('所在階')||k.includes('階建')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "built_date",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){const k=c(th.textContent);if(k.includes('築年月')||k.includes('築年数')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "energy_consumption_performance",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('エネルギー消費性能')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "insulation_performance",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('断熱性能')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "estimated_utility_cost",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('目安光熱費')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "insurance",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){const k=c(th.textContent);if(k.includes('損保')||k.includes('保険')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "parking",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('駐車場')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "move_in",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){const k=c(th.textContent);if(k.includes('入居')||k.includes('入居時期')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}const r=document.querySelector('tr.caseBukken');if(r){const t=[...r.querySelectorAll('td')].map(e=>c(e.textContent)).filter(Boolean);return t[t.length-1]||'';}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "transaction_type",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('取引態様')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "conditions",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('条件')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "store_property_code",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){const k=c(th.textContent);if(k.includes('取り扱い店舗物件コード')||k.includes('店舗物件コード')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "suumo_property_code",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('SUUMO物件コード')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}const m=location.href.match(/bc_(\\d+)/);return m?m[1]:'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "total_units",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('総戸数')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "information_update_date",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('情報更新日')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "next_update_date",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('次回更新日')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "guarantee_company",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('保証会社')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}const m=c(document.body.innerText).match(/保証会社[^\\n。]*/);return m?m[0]:'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "remarks",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();for(const th of document.querySelectorAll('th,dt')){if(c(th.textContent).includes('備考')){let n=th.nextElementSibling;while(n&&!/^(TH|DT)$/.test(n.tagName)){if(/^(TD|DD)$/.test(n.tagName))return c(n.textContent);n=n.nextElementSibling;}}}return '';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "nearby_information",
            "selector": "(()=>{const c=s=>(s||'').replace(/\\s+/g,' ').trim();let items=[...document.querySelectorAll('.around_list li,.property_view_detail-text li')].map(e=>c(e.textContent)).filter(Boolean);if(items.length)return items.join(' / ');const txt=c(document.body.innerText);const m=txt.match(/周辺情報\\s+(.+?)(駅周辺|物件情報をメール|賃貸物件の価格帯|$)/);return m?c(m[1]):'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "scraped_at",
            "selector": "(()=>new Date().toISOString())()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1560,
      "position_y": 220,
      "config": {
        "duration": 1
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1920,
      "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": "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": 1760,
      "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": 1128,
      "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": 1848,
      "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 rental property detail fields from multiple supplied rental detail URLs. Uses a known URL list loop with append-mode CSV output. The wait step targets body rather than h1 because some SUUMO /chintai/bc_... URLs redirect to library/expired pages where h1 may not be visible. Some room-level fields may be blank if SUUMO no longer exposes the active detail page.",
      "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 (property_name_url, property_name, inquiry_phone, rent_initial_cost, room_features_facilities). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1400,
      "position_y": 200,
      "width": 340,
      "height": 144,
      "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": 200,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}