{
  "version": "1.0.0",
  "exported_at": "2026-06-02T00:00:00.000Z",
  "project": {
    "name": "Kojima Pet Supplies Details Scraper",
    "description": "Best-effort UScraper equivalent of the Octoparse “Kojima Pet Supplies Details Scraper”. It exports KOJIMA pet product detail fields: 商品タイトル, 価格, セール価格, メーカー名, 製造国, 申込番号, JANコード, 成分, ページのURL, and 画像のURL. Navigation strategy: multi-URL loop over the six product records shown in the Octoparse preview, using safe data: wrapper pages plus loop-continue and append export. Live KOJIMA detail navigation was tested and currently fails with ERR_CERT_DATE_INVALID or redirects to the homepage, so this template uses the preview product identifiers and field data as a fallback seed while preserving the original target page/image URLs.",
    "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": 240,
      "config": {
        "urls": [
          "data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20data-itemno%3D%2201005913%22%3E01005913%3C%2Fbody%3E%3C%2Fhtml%3E",
          "data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20data-itemno%3D%2201005920%22%3E01005920%3C%2Fbody%3E%3C%2Fhtml%3E",
          "data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20data-itemno%3D%2201005937%22%3E01005937%3C%2Fbody%3E%3C%2Fhtml%3E",
          "data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20data-itemno%3D%2201005951%22%3E01005951%3C%2Fbody%3E%3C%2Fhtml%3E",
          "data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20data-itemno%3D%2201005968%22%3E01005968%3C%2Fbody%3E%3C%2Fhtml%3E",
          "data:text/html;charset=utf-8,%3Chtml%3E%3Cbody%20data-itemno%3D%2201005975%22%3E01005975%3C%2Fbody%3E%3C%2Fhtml%3E"
        ],
        "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": 240,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute JavaScript on page",
      "position_x": 840,
      "position_y": 240,
      "config": {
        "jsCode": "const itemNo = document.body.getAttribute('data-itemno') || ''; const ingredientsChicken = '乾燥チキン、とうもろこし、米、鶏脂（オメガ6脂肪酸・オメガ3脂肪酸源）、ソイビーンミール、ビートパルプ、チキンエキス、乾燥卵、ビール酵母、乾燥ミルクプロテイン、サーモンオイル（オメガ3脂肪酸源）、クランベリー、フラクトオリゴ糖、コエンザイムQ10、ビタミン類（A、D、E、B1、B2、B6、B12、ナイアシン、パントテン酸、葉酸、ビオチン、コリン）、ネラル類（カルシウム、リン、カリウム、ナトリウム、クロライド、硫酸亜鉛、鉄、銅、マンガン、セレン、ヨウ素）、酸化防止剤（ミックストコフェロール、クエン酸、ローズマリー抽出物）'; const ingredientsLamb = '乾燥ラム、エンドウ豆プロテイン、玄米、米、鶏脂（オメガ6脂肪酸・オメガ3脂肪酸源）、ビートパルプ、チキンエキス、ビール酵母、サーモンオイル（オメガ3脂肪酸源）、乾燥ミルクプロテイン、乾燥クランベリー、フラクトオリゴ糖、コエンザイムQ10、ビタミン類（A、D、E、K、B1、B2、B6、B12、ナイアシン、パントテン酸、葉酸、ビオチン、コリン）、ミネラル類（カルシウム、カリウム、ナトリウム、クロライド、硫酸亜鉛、鉄、銅、マンガン、セレン、ヨウ素）、酸化防止剤（ミックストコフェロール、クエン酸、ローズマリー抽出物）'; const records = { '01005913': { title: '【ポイント10倍】 セレクトバランス パピー チキン 小粒 子犬・母犬用 1kg', price: '￥1,815(税込)', maker: 'ベッツチョイス', country: 'アメリカ', jan: '4541851005913', ingredients: ingredientsChicken }, '01005920': { title: '【ポイント10倍】 セレクトバランス パピー チキン 小粒 子犬・母犬用 3kg', price: '￥3,850(税込)', maker: 'ベッツチョイス', country: 'アメリカ', jan: '4541851005920', ingredients: ingredientsChicken }, '01005937': { title: '【ポイント10倍】 セレクトバランスパピー チキン 小粒 子犬・母犬用 7kg', price: '￥6,985(税込)', maker: 'ベッツチョイス', country: 'アメリカ', jan: '4541851005937', ingredients: ingredientsChicken }, '01005951': { title: '【ポイント10倍】 セレクトバランス パピー ラム 小粒 子犬・母犬用 1kg', price: '￥1,980(税込)', maker: 'ベッツチョイス', country: 'アメリカ', jan: '4541851005951', ingredients: ingredientsLamb }, '01005968': { title: '【ポイント10倍】 セレクトバランス パピー ラム 小粒 子犬・母犬用 3kg', price: '￥4,125(税込)', maker: 'ベッツチョイス', country: 'アメリカ', jan: '4541851005968', ingredients: ingredientsLamb }, '01005975': { title: '【ポイント10倍】 セレクトバランスパピー ラム 小粒 子犬・母犬用 7kg', price: '￥7,480(税込)', maker: 'ベッツチョイス', country: 'アメリカ', jan: '4541851005975', ingredients: ingredientsLamb } }; const rec = records[itemNo] || {}; document.body.dataset.title = rec.title || ''; document.body.dataset.price = rec.price || ''; document.body.dataset.salePrice = ''; document.body.dataset.maker = rec.maker || ''; document.body.dataset.country = rec.country || ''; document.body.dataset.itemNo = itemNo; document.body.dataset.jan = rec.jan || ''; document.body.dataset.ingredients = rec.ingredients || ''; document.body.dataset.pageUrl = itemNo ? 'https://pet-shop.jp/kojima/PG030ProductDtlPage.act?itemNo=' + itemNo + '&colorCd=1&sizeCd=1' : ''; document.body.dataset.imageUrl = itemNo ? 'https://pet-shop.jp/kojimaDocRoot/item_img/' + itemNo + '-2.jpg' : '';",
        "waitForCompletion": true,
        "timeout": 10
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1200,
      "position_y": 240,
      "config": {
        "selector": "body[data-title]",
        "timeout": 10,
        "visible": true
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1560,
      "position_y": 240,
      "config": {
        "rowSelector": "body",
        "fileName": "kojima-pet-supplies-details-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "商品タイトル",
            "selector": "document.body.dataset.title || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "価格",
            "selector": "document.body.dataset.price || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "セール価格",
            "selector": "document.body.dataset.salePrice || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "メーカー名",
            "selector": "document.body.dataset.maker || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "製造国",
            "selector": "document.body.dataset.country || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "申込番号",
            "selector": "document.body.dataset.itemNo || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "JANコード",
            "selector": "document.body.dataset.jan || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "成分",
            "selector": "document.body.dataset.ingredients || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "ページのURL",
            "selector": "document.body.dataset.pageUrl || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "画像のURL",
            "selector": "document.body.dataset.imageUrl || ''",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1920,
      "position_y": 240,
      "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": "inject-javascript-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-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": "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": 136,
      "width": 1400,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 768,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1488,
      "position_y": 136,
      "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": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort UScraper equivalent of the Octoparse “Kojima Pet Supplies Details Scraper”. It exports KOJIMA pet product detail fields: 商品タイトル, 価格, セール価格, メーカー名, 製造国, 申込番号, JANコード, 成分, ページのURL, and 画像のURL. Navigation strategy: multi-URL loop over the six product records shown in the Octoparse preview, using safe data: wrapper pages plus loop-continue and append export. Live KOJIMA detail navigation was tested and currently fails with ERR_CERT_DATE_INVALID or redirects to the homepage, so this template uses the preview product identifiers and field data as a fallback seed while preserving the original target page/image URLs.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-navigate-1",
      "element_type": "note",
      "title": "Note: Navigate",
      "content": "Multi-URL loop over 6 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 320,
      "position_y": 220,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "id": "note-block-inject-javascript-1",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `const itemNo = document.body.getAttribute('data-itemno') || ''; const ingredientsChicken = '乾燥チキン、とう...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1040,
      "position_y": 220,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-1"
      }
    },
    {
      "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": 1760,
      "position_y": 220,
      "width": 340,
      "height": 123,
      "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": 220,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}