{
  "version": "1.0.0",
  "exported_at": "2026-06-02T19:00:00.000Z",
  "project": {
    "name": "LIPSCOSME Comments Scraper",
    "description": "Extracts LIPSCOSME product review/comment data from https://lipscosme.com/products/497682/review, including reviewer tags, like/quote counts, publishing date, review brief, review page URL, and up to 3 picture URLs. Pagination uses a known URL list for pages 1-4 because the target has 183 reviews with about 50 reviews per page; results are appended into one CSV. If CAPTCHA or bot checks appear, run in browser mode and solve manually.",
    "color": "bg-[#ff7eb6]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 120,
      "position_y": 260,
      "config": {
        "urls": [
          "https://lipscosme.com/products/497682/review",
          "https://lipscosme.com/products/497682/review?page=2",
          "https://lipscosme.com/products/497682/review?page=3",
          "https://lipscosme.com/products/497682/review?page=4"
        ],
        "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": 260,
      "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": 260,
      "config": {
        "selector": ".PostListMedium__item",
        "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": 260,
      "config": {
        "rowSelector": ".PostListMedium__item",
        "fileName": "lipscosme-comments-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "reviewer_tag_1",
            "selector": "(() => { const tags = Array.from(ROW.querySelectorAll('.PostListMedium__user-info-item')).map(e => e.textContent.trim()).filter(t => /(?:[0-9０-９]+代|普通肌|乾燥肌|脂性肌|混合肌|敏感肌|ブルベ|イエベ|女性|男性)/.test(t)); return tags[0] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "reviewer_tag_2",
            "selector": "(() => { const tags = Array.from(ROW.querySelectorAll('.PostListMedium__user-info-item')).map(e => e.textContent.trim()).filter(t => /(?:[0-9０-９]+代|普通肌|乾燥肌|脂性肌|混合肌|敏感肌|ブルベ|イエベ|女性|男性)/.test(t)); return tags[1] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "reviewer_tag_3",
            "selector": "(() => { const tags = Array.from(ROW.querySelectorAll('.PostListMedium__user-info-item')).map(e => e.textContent.trim()).filter(t => /(?:[0-9０-９]+代|普通肌|乾燥肌|脂性肌|混合肌|敏感肌|ブルベ|イエベ|女性|男性)/.test(t)); return tags[2] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "number_of_likes",
            "selector": ".PostListMedium__info-like",
            "attribute": "text"
          },
          {
            "name": "number_of_quote",
            "selector": ".PostListMedium__info-clip",
            "attribute": "text"
          },
          {
            "name": "publishing_date",
            "selector": ".PostListMedium__info-published_at",
            "attribute": "text"
          },
          {
            "name": "review_brief",
            "selector": "(() => { const el = ROW.querySelector('.PostListMedium__post-content'); return el ? el.textContent.replace(/\\s*もっと見る\\s*/g, ' ').replace(/\\s+/g, ' ').trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "review_url",
            "selector": "(() => location.origin + location.pathname.replace(/\\/$/, ''))()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "picture_url_1",
            "selector": "(() => { const img = ROW.querySelectorAll('.PostListMedium__post-thumb')[0]; return img && img.src ? img.src.split('?')[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "picture_url_2",
            "selector": "(() => { const img = ROW.querySelectorAll('.PostListMedium__post-thumb')[1]; return img && img.src ? img.src.split('?')[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "picture_url_3",
            "selector": "(() => { const img = ROW.querySelectorAll('.PostListMedium__post-thumb')[2]; return img && img.src ? img.src.split('?')[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1560,
      "position_y": 260,
      "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": "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": 156,
      "width": 1040,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1128,
      "position_y": 156,
      "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": 1488,
      "position_y": 156,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Extracts LIPSCOSME product review/comment data from https://lipscosme.com/products/497682/review, including reviewer tags, like/quote counts, publishing date, review brief, review page URL, and up to 3 picture URLs. Pagination uses a known URL list for pages 1-4 because the target has 183 reviews with about 50 reviews per page; results are appended into one CSV. If CAPTCHA or bot checks appear, run in browser mode and solve manually.",
      "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 (reviewer_tag_1, reviewer_tag_2, reviewer_tag_3, review_brief, review_url). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1400,
      "position_y": 240,
      "width": 340,
      "height": 138,
      "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": 1760,
      "position_y": 240,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}