{
  "version": "1.0.0",
  "exported_at": "2026-06-01T12:15:00.000Z",
  "project": {
    "name": "Guru Navi Restaurant Scraper",
    "description": "Best-effort Rakuten Gurunavi restaurant detail scraper equivalent to the Octoparse Guru Navi Restaurant Scraper preview. Uses known Gurunavi restaurant URLs as navigation input, skips URLs that redirect to non-restaurant pages, and appends one CSV row per valid restaurant. Extracts location, type/category, page number, shop name, phone, address, access, hours, holidays, budget, credit cards, total seats, menu services, takeout, and restaurant URL. Pagination/navigation strategy: known URL list with loop-continue; extend navigate.urls[] with additional restaurant URLs gathered from keyword searches to scrape more records.",
    "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": 220,
      "config": {
        "urls": [
          "https://r.gnavi.co.jp/akrp6pxb0000/",
          "https://r.gnavi.co.jp/8wy33shy0000/",
          "https://r.gnavi.co.jp/b977503/"
        ],
        "color": "bg-[#4589ff]",
        "tags": [
          "gurunavi",
          "restaurant-detail",
          "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": 456,
      "position_y": 220,
      "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": 792,
      "position_y": 220,
      "config": {
        "selector": "body",
        "timeout": 30,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "text-contains-1",
      "block_type": "process",
      "title": "Text Contains",
      "description": "Check if page contains text",
      "position_x": 1128,
      "position_y": 220,
      "config": {
        "selector": "body",
        "text": "店舗情報",
        "timeout": 5,
        "caseSensitive": false,
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1464,
      "position_y": 520,
      "config": {
        "rowSelector": "body",
        "fileName": "gurunavi-shop-restaurant-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "tags": [
          "csv",
          "detail-page",
          "js-columns"
        ],
        "columns": [
          {
            "name": "location",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const a=Array.from(document.querySelectorAll('#gn_info-breadcrumbs-inner li a')).map(x=>norm(x.textContent)).filter(Boolean);return [a[1],a[3]||a[2]].filter(Boolean).join(' ');})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "type",
            "selector": "(()=>{const t=document.title||'';const m=t.match(/\\/([^）)]+)[）)]/);return m?m[1].trim():'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "page_number",
            "selector": "(()=> '1')()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "shop_name",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();return norm(document.querySelector('h1')?.textContent);})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "phone_number",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;const m=t.match(/電話番号(?:・FAX)?\\s*([0-9\\-]+)/);return m?m[1]:'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "address",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;const m=t.match(/住所\\s*(.*?)(?:\\s*大きな地図|\\s*地図印刷|\\s*アクセス)/);return m?m[1].trim():'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "access",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;const m=t.match(/アクセス\\s*(.*?)(?:\\s*駐車場|\\s*営業時間)/);return m?m[1].trim():'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "business_hours",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;const m=t.match(/営業時間\\s*(.*?)(?:\\s*定休日|\\s*平均予算)/);return m?m[1].trim():'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "regular_holiday",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;const m=t.match(/定休日\\s*(.*?)(?:\\s*平均予算|\\s*クレジットカード)/);return m?m[1].trim():'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "budget",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;const m=t.match(/平均予算\\s*(.*?)(?:\\s*クレジットカード|\\s*電子マネー\\/その他|\\s*キャンセルについて)/);return m?m[1].trim():'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "credit_card",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;const m=t.match(/クレジットカード\\s*(.*?)(?:\\s*電子マネー\\/その他|\\s*キャンセルについて|\\s*席・設備)/);return m?m[1].trim():'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "total_seats",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;const m=t.match(/総席数\\s*(.*?)(?:\\s*宴会最大人数|\\s*貸切可能人数|\\s*禁煙・喫煙)/);return m?m[1].trim():'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "menu_service",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;let m=t.match(/メニューのサービス・関連情報\\s*メニューのサービス\\s*(.*?)(?:\\s*ランチタイムのサービス|\\s*ドレスコード|\\s*利用シーン|\\s*お店のウリ|\\s*お得な情報をGET)/);if(!m)m=t.match(/メニューのサービス\\s*(.*?)(?:\\s*ランチタイムのサービス|\\s*ドレスコード|\\s*利用シーン|\\s*お店のウリ|\\s*お得な情報をGET)/);return m?m[1].trim():'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "takeout",
            "selector": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const all=norm(ROW.innerText);const shop=norm(document.querySelector('h1')?.textContent);const marker=shop+' 店舗情報';const i=all.indexOf(marker);const t=i>=0?all.slice(i):all;const m=t.match(/(?:テイクアウト可|ドギーバッグ可|テイクアウト[^\\s]*)/g);return m?Array.from(new Set(m)).join(' '):'';})()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "shop_url",
            "selector": "(()=> window.location.href)()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1800,
      "position_y": 520,
      "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": "text-contains-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "text-contains-1",
      "from_connector_id": "true",
      "to_block_id": "structured-export-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "text-contains-1",
      "from_connector_id": "false",
      "to_block_id": "loop-continue-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": 116,
      "width": 992,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 1056,
      "position_y": 116,
      "width": 992,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "text-contains-1",
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1392,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort Rakuten Gurunavi restaurant detail scraper equivalent to the Octoparse Guru Navi Restaurant Scraper preview. Uses known Gurunavi restaurant URLs as navigation input, skips URLs that redirect to non-restaurant pages, and appends one CSV row per valid restaurant. Extracts location, type/category, page number, shop name, phone, address, access, hours, holidays, budget, credit cards, total seats, menu services, takeout, and restaurant URL. Pagination/navigation strategy: known URL list with loop-continue; extend navigate.urls[] with additional restaurant URLs gathered from keyword searches to scrape more records.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-text-contains-1",
      "element_type": "note",
      "title": "Note: Text Contains",
      "content": "Condition block: checks `body`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 1328,
      "position_y": 200,
      "width": 340,
      "height": 131,
      "z_index": 22,
      "data": {
        "block_id": "text-contains-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (location, type, page_number, shop_name, phone_number). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1664,
      "position_y": 500,
      "width": 340,
      "height": 131,
      "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": 2000,
      "position_y": 500,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}