{
  "version": "1.0.0",
  "exported_at": "2026-06-01T00:00:00.000Z",
  "project": {
    "name": "Openwork Job Reviews Scraper",
    "description": "Best-effort scraper for OpenWork Japan company/job review search results inferred from the Octoparse template description. It extracts public company review listing data including company name, OpenWork URL, overall rating, industry, employee review count, salary/pay review count, questions count, job posting count, followers count, and raw listing text. Pagination is handled by clicking the Japanese Next/次 pagination link until no next page is available, appending all pages to one CSV. The original Octoparse description mentions annual salary range, openness, and legal-compliance awareness; those detail-level fields were not exposed in the tested public listing rows and may require company detail pages, login, or OpenWork access permissions.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated-openwork-job-reviews"
  },
  "blocks": [
    {
      "block_id": "set-window-size-1",
      "block_type": "process",
      "title": "Set Window Size",
      "description": "Set browser window dimensions",
      "position_x": 120,
      "position_y": 260,
      "config": {
        "width": 1920,
        "height": 1080,
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 480,
      "position_y": 260,
      "config": {
        "url": "https://www.openwork.jp/company_list?src_str=",
        "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": 840,
      "position_y": 260,
      "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": 1200,
      "position_y": 260,
      "config": {
        "selector": "a[href*=\"/company.php\"], a[href*=\"/company/\"]",
        "timeout": 30,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1560,
      "position_y": 260,
      "config": {
        "rowSelector": "li:has(a[href*=\"/company.php\"]), article:has(a[href*=\"/company.php\"]), tr:has(a[href*=\"/company.php\"]), div[class*=\"companyList\"]:has(a[href*=\"/company.php\"]), div[class*=\"CompanyList\"]:has(a[href*=\"/company.php\"])",
        "fileName": "openwork_job_reviews_public_listing.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "company_name",
            "selector": "(function(){ const a = ROW.querySelector('a[href*=\"/company.php\"], a[href*=\"/company/\"]'); return a ? a.textContent.trim().replace(/\\s+/g, ' ') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "company_url",
            "selector": "(function(){ const a = ROW.querySelector('a[href*=\"/company.php\"], a[href*=\"/company/\"]'); return a ? a.href : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "overall_rating",
            "selector": "(function(){ const text = ROW.innerText.replace(/\\s+/g, ' '); const labeled = text.match(/(?:総合評価|総合スコア|評価)\\s*([0-5](?:\\.\\d{1,2})?)/); if (labeled) return labeled[1]; const anyScore = text.match(/\\b[0-5]\\.\\d{1,2}\\b/); return anyScore ? anyScore[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "industry",
            "selector": "(function(){ const text = ROW.innerText.replace(/\\s+/g, ' ').trim(); const m = text.match(/[0-5]\\.\\d{1,2}\\s+(.+?)\\s+社員クチコミ/); return m ? m[1].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "employee_review_count",
            "selector": "(function(){ const text = ROW.innerText.replace(/\\s+/g, ' '); const m = text.match(/(?:社員クチコミ|口コミ|クチコミ)\\s*([0-9,]+)\\s*件/); return m ? m[1].replace(/,/g, '') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "salary_pay_review_count",
            "selector": "(function(){ const text = ROW.innerText.replace(/\\s+/g, ' '); const m = text.match(/年収・給与\\s*([0-9,]+)\\s*件/); return m ? m[1].replace(/,/g, '') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "questions_count",
            "selector": "(function(){ const text = ROW.innerText.replace(/\\s+/g, ' '); const m = text.match(/質問\\s*([0-9,]+)\\s*件/); return m ? m[1].replace(/,/g, '') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_postings_count",
            "selector": "(function(){ const text = ROW.innerText.replace(/\\s+/g, ' '); const m = text.match(/求人情報\\s*([0-9,]+)\\s*件/); return m ? m[1].replace(/,/g, '') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "followers_count",
            "selector": "(function(){ const text = ROW.innerText.replace(/\\s+/g, ' '); const m = text.match(/フォローする\\s*([0-9,]+)\\s*人/); return m ? m[1].replace(/,/g, '') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "raw_listing_text",
            "selector": "(function(){ return ROW.innerText.trim().replace(/\\s+/g, ' '); })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "element-exists-1",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 1920,
      "position_y": 260,
      "config": {
        "selector": "//a[(@rel='next' or contains(normalize-space(.), '次') or contains(normalize-space(.), '次へ')) and not(contains(@class, 'disabled')) and not(contains(@class, 'disable')) and not(@aria-disabled='true')]",
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "click-1",
      "block_type": "process",
      "title": "Click",
      "description": "Click on element",
      "position_x": 2280,
      "position_y": 260,
      "config": {
        "selector": "//a[(@rel='next' or contains(normalize-space(.), '次') or contains(normalize-space(.), '次へ')) and not(contains(@class, 'disabled')) and not(contains(@class, 'disable')) and not(@aria-disabled='true')]",
        "timeout": 10,
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "wait-for-page-load-2",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 2640,
      "position_y": 260,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 2640,
      "position_y": 580,
      "config": {
        "duration": 2,
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "end-1",
      "block_type": "output",
      "title": "End",
      "description": "Terminate execution flow",
      "position_x": 1920,
      "position_y": 580,
      "config": {
        "color": "bg-[#8d8d8d]"
      }
    }
  ],
  "connections": [
    {
      "from_block_id": "set-window-size-1",
      "from_connector_id": "right",
      "to_block_id": "navigate-1",
      "to_connector_id": "left"
    },
    {
      "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": "element-exists-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "true",
      "to_block_id": "click-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "false",
      "to_block_id": "end-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "click-1",
      "from_connector_id": "right",
      "to_block_id": "wait-for-page-load-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-page-load-2",
      "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": "wait-for-element-1",
      "to_connector_id": "left"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-entry",
      "element_type": "group",
      "title": "Entry & Setup",
      "color": "#4589ff",
      "position_x": 48,
      "position_y": 156,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "set-window-size-1"
        ]
      }
    },
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 408,
      "position_y": 156,
      "width": 2480,
      "height": 616,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1",
          "wait-for-page-load-2",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1488,
      "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": 1848,
      "position_y": 156,
      "width": 680,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "element-exists-1",
          "click-1"
        ]
      }
    },
    {
      "id": "group-control",
      "element_type": "group",
      "title": "Control Flow",
      "color": "#8d8d8d",
      "position_x": 1848,
      "position_y": 476,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "end-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort scraper for OpenWork Japan company/job review search results inferred from the Octoparse template description. It extracts public company review listing data including company name, OpenWork URL, overall rating, industry, employee review count, salary/pay review count, questions count, job posting count, followers count, and raw listing text. Pagination is handled by clicking the Japanese Next/次 pagination link until no next page is available, appending all pages to one CSV. The original Octoparse description mentions annual salary range, openness, and legal-compliance awareness; those detail-level fields were not exposed in the tested public listing rows and may require company detail pages, login, or OpenWork access permissions.",
      "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 (company_name, company_url, overall_rating, industry, employee_review_count). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1760,
      "position_y": 240,
      "width": 340,
      "height": 138,
      "z_index": 22,
      "data": {
        "block_id": "structured-export-1"
      }
    },
    {
      "id": "note-block-element-exists-1",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `//a[(@rel='next' or contains(normalize-space(.), '次') or contains(normalize-space(.), '次へ')) and not(contains(@class, 'd`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 2120,
      "position_y": 240,
      "width": 340,
      "height": 170,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-1"
      }
    },
    {
      "id": "note-block-click-1",
      "element_type": "note",
      "title": "Note: Click",
      "content": "Uses XPath `//a[(@rel='next' or contains(normalize-space(.), '次') or contains(normalize-space(.), '次へ')) and not`. XPath breaks easily if DOM structure changes.",
      "color": "#ee5396",
      "position_x": 2480,
      "position_y": 240,
      "width": 340,
      "height": 133,
      "z_index": 22,
      "data": {
        "block_id": "click-1"
      }
    }
  ]
}