{
  "version": "1.0.0",
  "exported_at": "2026-06-03T00:00:00.000Z",
  "project": {
    "name": "Syosetu Scraper by Keyword",
    "description": "Scrapes public Syosetu novel/work info pages from ncode.syosetu.com and exports Octoparse-equivalent novel metadata: title, detail link, author, info link, synopsis, N-code, episode count, status, genre, keywords, latest update, character count, estimated reading time, reviews, total points, bookmarks, and rating points. Navigation uses a multi-URL loop over verified Syosetu work info URLs converted from N-code result URLs; extend navigate.urls[] with currently accessible /novelview/infotop/ncode/{ncode}/ URLs to scrape additional keyword results. Some Octoparse preview fields not present on the analyzed info page, such as weekly unique users and rating-person count, are exported blank.",
    "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://ncode.syosetu.com/novelview/infotop/ncode/n4614in/",
          "https://ncode.syosetu.com/novelview/infotop/ncode/n5974hn/"
        ],
        "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": ".p-infotop-data",
        "timeout": 30,
        "visible": true
      }
    },
    {
      "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": "syosetu.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "タイトル",
            "selector": "(() => { const doc = ROW.ownerDocument; return doc.querySelector('h1.p-infotop-title a')?.innerText.trim() || doc.querySelector('h1')?.innerText.trim() || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "詳細リンク",
            "selector": "(() => { const doc = ROW.ownerDocument; return doc.querySelector('h1.p-infotop-title a')?.href || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "作者",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('作者名'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "作品情報リンク",
            "selector": "(() => ROW.ownerDocument.location.href)()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "あらすじ",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('あらすじ'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Nコード",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('Nコード'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "エピソード数",
            "selector": "(() => { const doc = ROW.ownerDocument; const t = doc.querySelector('.p-infotop-type__allep')?.innerText || ''; const m = t.match(/\\d[\\d,]*/); return m ? m[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "状況",
            "selector": "(() => { const doc = ROW.ownerDocument; return doc.querySelector('.p-infotop-type__type')?.innerText.trim() || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "ジャンル",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('ジャンル'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "キーワード",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('キーワード'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "最終更新日",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('最新掲載日'); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "文字数",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('文字数').replace(/[^\\d,]/g, ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "読了時間",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; const raw = val('文字数').replace(/[^\\d]/g, ''); const n = parseInt(raw || '0', 10); return n ? ('約' + Math.ceil(n / 500).toLocaleString('ja-JP') + '分') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "週別ユニークユーザー",
            "selector": "(() => '')()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "レビュー数_件",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('レビュー').replace(/[^\\d]/g, ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "総合ポイント_pt",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('総合評価').replace(/[^\\d,]/g, ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "ブックマーク",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('ブックマーク登録').replace(/[^\\d,]/g, ''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "評価人数",
            "selector": "(() => '')()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "評価ポイント",
            "selector": "(() => { const doc = ROW.ownerDocument; const val = (label) => { const d = Array.from(doc.querySelectorAll('.p-infotop-data__title')).find(e => e.textContent.trim() === label); return d && d.nextElementSibling ? d.nextElementSibling.innerText.trim().replace(/\\s+/g, ' ') : ''; }; return val('評価ポイント').replace(/[^\\d,]/g, ''); })()",
            "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": "Scrapes public Syosetu novel/work info pages from ncode.syosetu.com and exports Octoparse-equivalent novel metadata: title, detail link, author, info link, synopsis, N-code, episode count, status, genre, keywords, latest update, character count, estimated reading time, reviews, total points, bookmarks, and rating points. Navigation uses a multi-URL loop over verified Syosetu work info URLs converted from N-code result URLs; extend navigate.urls[] with currently accessible /novelview/infotop/ncode/{ncode}/ URLs to scrape additional keyword results. Some Octoparse preview fields not present on the analyzed info page, such as weekly unique users and rating-person count, are exported blank.",
      "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 (タイトル, 詳細リンク, 作者, 作品情報リンク, あらすじ). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1400,
      "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": 2120,
      "position_y": 200,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}