{
  "version": "1.0.0",
  "exported_at": "2026-06-01T03:15:00.000Z",
  "project": {
    "name": "Clutch Scraper Company Listing",
    "description": "Best-effort Clutch.co company listing scraper equivalent to the Octoparse template. Extracts company name, rating, review count, minimum project size, hourly rate, employee count, location, service focus, and website/profile URL from Clutch listing pages. Uses multiple listing URLs and follows enabled Next pagination for each URL, appending all pages to one CSV. Clutch.co returned Cloudflare/security verification in analysis and all autonomous test runs; this template detects that page, waits and refreshes once, then extracts only if listing HTML is available. A verified browser session/cookies are required when Cloudflare remains active.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "set-window-size-1",
      "block_type": "process",
      "title": "Set Window Size",
      "description": "Set browser window dimensions",
      "position_x": 120,
      "position_y": 220,
      "config": {
        "width": 1920,
        "height": 1080,
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 456,
      "position_y": 220,
      "config": {
        "urls": [
          "https://clutch.co/directory/iphone-application-developers",
          "https://clutch.co/agencies/sem/new-york-state"
        ],
        "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": 792,
      "position_y": 220,
      "config": {
        "timeout": 60,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Short initial settle time",
      "position_x": 1128,
      "position_y": 220,
      "config": {
        "duration": 8,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "text-contains-1",
      "block_type": "process",
      "title": "Text Contains",
      "description": "Detect Cloudflare/security verification page",
      "position_x": 1464,
      "position_y": 220,
      "config": {
        "selector": "body",
        "text": "security verification",
        "caseSensitive": false,
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "sleep-2",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for possible verification completion",
      "position_x": 1800,
      "position_y": 520,
      "config": {
        "duration": 45,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "refresh-1",
      "block_type": "process",
      "title": "Refresh",
      "description": "Reload after verification wait",
      "position_x": 2136,
      "position_y": 520,
      "config": {
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "wait-for-page-load-2",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait after refresh",
      "position_x": 2472,
      "position_y": 520,
      "config": {
        "timeout": 60,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-3",
      "block_type": "process",
      "title": "Sleep",
      "description": "Pause after refresh",
      "position_x": 2808,
      "position_y": 520,
      "config": {
        "duration": 6,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "text-contains-2",
      "block_type": "process",
      "title": "Text Contains",
      "description": "Check whether security verification remains",
      "position_x": 3144,
      "position_y": 520,
      "config": {
        "selector": "body",
        "text": "security verification",
        "caseSensitive": false,
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "scroll-1",
      "block_type": "process",
      "title": "Scroll",
      "description": "Scroll slightly to trigger lazy-loaded listing cards",
      "position_x": 3144,
      "position_y": 520,
      "config": {
        "direction": "down",
        "amount": 700,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-4",
      "block_type": "process",
      "title": "Sleep",
      "description": "Pause after scroll for lazy content",
      "position_x": 1968,
      "position_y": 800,
      "config": {
        "duration": 3,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "element-exists-1",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if company profile links exist",
      "position_x": 2304,
      "position_y": 800,
      "config": {
        "selector": "a[href^='/profile/'], a[href*='clutch.co/profile/'], a[href*='/profile/'], a.provider__title-link, .provider__title a, .company-name a, .company_info a, h2 a[href*='/profile/'], h3 a[href*='/profile/'], h4 a[href*='/profile/']",
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until company profile links appear",
      "position_x": 2640,
      "position_y": 800,
      "config": {
        "selector": "a[href^='/profile/'], a[href*='clutch.co/profile/'], a[href*='/profile/'], a.provider__title-link, .provider__title a, .company-name a, .company_info a, h2 a[href*='/profile/'], h3 a[href*='/profile/'], h4 a[href*='/profile/']",
        "timeout": 45,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export company listing data with custom columns",
      "position_x": 2976,
      "position_y": 800,
      "config": {
        "rowSelector": "a[href^='/profile/'], a[href*='clutch.co/profile/'], a[href*='/profile/'], a.provider__title-link, .provider__title a, .company-name a, .company_info a, h2 a[href*='/profile/'], h3 a[href*='/profile/'], h4 a[href*='/profile/']",
        "fileName": "clutch-scraper-company-listing.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "Company_name",
            "selector": "(() => (ROW.textContent || '').trim())()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Rating",
            "selector": "(() => { const C = ROW.closest('[data-provider-id], [data-node-type=\"provider\"], li, article, .provider, .provider-row, .provider-list-item, .provider-card, .directory-list__item, .company-card, .search-result, .listing') || ROW.parentElement || ROW; const el = C.querySelector('.sg-rating__number, [data-testid*=\"rating\"], .rating, [class*=\"rating\"], .provider__rating'); const txt = (el ? el.textContent : C.textContent) || ''; const m = txt.match(/\\b[0-5](?:\\.\\d)?\\b/); return m ? m[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Number_of_reviews",
            "selector": "(() => { const C = ROW.closest('[data-provider-id], [data-node-type=\"provider\"], li, article, .provider, .provider-row, .provider-list-item, .provider-card, .directory-list__item, .company-card, .search-result, .listing') || ROW.parentElement || ROW; const el = C.querySelector('a[href*=\"reviews\"], .reviews-link, .sg-rating__reviews, [data-testid*=\"review\"], [class*=\"review\"]'); const txt = (el ? el.textContent : C.textContent) || ''; const m = txt.match(/\\d[\\d,]*\\s+reviews?/i); return m ? m[0].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Min_project_size",
            "selector": "(() => { const C = ROW.closest('[data-provider-id], [data-node-type=\"provider\"], li, article, .provider, .provider-row, .provider-list-item, .provider-card, .directory-list__item, .company-card, .search-result, .listing') || ROW.parentElement || ROW; const text = C.innerText || C.textContent || ''; const lines = text.split('\\n').map(s => s.trim()).filter(Boolean); const i = lines.findIndex(l => /min\\.?\\s*project|project\\s*size/i.test(l)); if (i >= 0 && lines[i + 1]) return lines[i + 1]; const m = text.match(/\\$\\d[\\d,]*\\+/); return m ? m[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Avg_hourly_rate",
            "selector": "(() => { const C = ROW.closest('[data-provider-id], [data-node-type=\"provider\"], li, article, .provider, .provider-row, .provider-list-item, .provider-card, .directory-list__item, .company-card, .search-result, .listing') || ROW.parentElement || ROW; const text = C.innerText || C.textContent || ''; const m = text.match(/(?:<\\s*)?\\$\\d[\\d,]*\\s*(?:-\\s*\\$\\d[\\d,]*|\\+)?\\s*\\/\\s*hr/i); return m ? m[0].replace(/\\s+/g, ' ').trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Employees",
            "selector": "(() => { const C = ROW.closest('[data-provider-id], [data-node-type=\"provider\"], li, article, .provider, .provider-row, .provider-list-item, .provider-card, .directory-list__item, .company-card, .search-result, .listing') || ROW.parentElement || ROW; const text = C.innerText || C.textContent || ''; const lines = text.split('\\n').map(s => s.trim()).filter(Boolean); const i = lines.findIndex(l => /employees|staff|team\\s*size/i.test(l)); if (i >= 0 && lines[i + 1]) return lines[i + 1]; const line = lines.find(l => /^\\d[\\d,]*\\s*-\\s*\\d[\\d,]*$/.test(l) || /^\\d[\\d,]*\\+$/.test(l)); return line || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Location",
            "selector": "(() => { const C = ROW.closest('[data-provider-id], [data-node-type=\"provider\"], li, article, .provider, .provider-row, .provider-list-item, .provider-card, .directory-list__item, .company-card, .search-result, .listing') || ROW.parentElement || ROW; const el = C.querySelector('[data-testid*=\"location\"], .locality, .location, .provider__location, [class*=\"location\"]'); if (el && el.textContent.trim()) return el.textContent.trim(); const lines = (C.innerText || '').split('\\n').map(s => s.trim()).filter(Boolean); const loc = lines.find(l => /,/.test(l) && !/reviews?|\\/\\s*hr|\\$|%|rating|verified|sponsor/i.test(l)); return loc || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Service_focus",
            "selector": "(() => { const C = ROW.closest('[data-provider-id], [data-node-type=\"provider\"], li, article, .provider, .provider-row, .provider-list-item, .provider-card, .directory-list__item, .company-card, .search-result, .listing') || ROW.parentElement || ROW; const text = C.innerText || C.textContent || ''; const lines = text.split('\\n').map(s => s.trim()).filter(Boolean); const line = lines.find(l => /^\\d{1,3}%\\s+/.test(l)); if (line) return line; const m = text.match(/\\d{1,3}%\\s+[^\\n]+/); return m ? m[0].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Webiste_URL",
            "selector": "(() => { const C = ROW.closest('[data-provider-id], [data-node-type=\"provider\"], li, article, .provider, .provider-row, .provider-list-item, .provider-card, .directory-list__item, .company-card, .search-result, .listing') || ROW.parentElement || ROW; const website = C.querySelector('a[href*=\"ppc.clutch.co\"], a[href*=\"/ppc/click/\"], a.website-link__item, a[href^=\"http\"]:not([href*=\"clutch.co/profile\"]):not([href*=\"/profile/\"])'); const el = website || ROW; const href = el.getAttribute('href') || ''; try { return new URL(href, location.origin).href; } catch (e) { return href; } })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "element-exists-2",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if a next page link exists",
      "position_x": 3312,
      "position_y": 800,
      "config": {
        "selector": "a[rel='next'], a[aria-label='Next']:not(.disabled):not([aria-disabled='true']), a[aria-label='next']:not(.disabled):not([aria-disabled='true']), .pager__item--next:not(.disabled) a, li.next:not(.disabled) a, li.page-item.next:not(.disabled) a, a.page-link[aria-label*='Next']",
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "click-1",
      "block_type": "process",
      "title": "Click",
      "description": "Click the next page link",
      "position_x": 3648,
      "position_y": 800,
      "config": {
        "selector": "a[rel='next'], a[aria-label='Next']:not(.disabled):not([aria-disabled='true']), a[aria-label='next']:not(.disabled):not([aria-disabled='true']), .pager__item--next:not(.disabled) a, li.next:not(.disabled) a, li.page-item.next:not(.disabled) a, a.page-link[aria-label*='Next']",
        "timeout": 15,
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "wait-for-page-load-3",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for next listing page to load",
      "position_x": 3984,
      "position_y": 800,
      "config": {
        "timeout": 60,
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "sleep-5",
      "block_type": "process",
      "title": "Sleep",
      "description": "Pause after pagination click",
      "position_x": 4320,
      "position_y": 800,
      "config": {
        "duration": 5,
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue to the next listing URL",
      "position_x": 3480,
      "position_y": 520,
      "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": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-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": "sleep-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "text-contains-1",
      "from_connector_id": "false",
      "to_block_id": "scroll-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-2",
      "from_connector_id": "right",
      "to_block_id": "refresh-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "refresh-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-3",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-3",
      "from_connector_id": "right",
      "to_block_id": "text-contains-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "text-contains-2",
      "from_connector_id": "true",
      "to_block_id": "loop-continue-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "text-contains-2",
      "from_connector_id": "false",
      "to_block_id": "scroll-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "scroll-1",
      "from_connector_id": "right",
      "to_block_id": "sleep-4",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-4",
      "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": "wait-for-element-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1",
      "from_connector_id": "false",
      "to_block_id": "loop-continue-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-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-2",
      "from_connector_id": "true",
      "to_block_id": "click-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-2",
      "from_connector_id": "false",
      "to_block_id": "loop-continue-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "click-1",
      "from_connector_id": "right",
      "to_block_id": "wait-for-page-load-3",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-page-load-3",
      "from_connector_id": "right",
      "to_block_id": "sleep-5",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-5",
      "from_connector_id": "right",
      "to_block_id": "text-contains-1",
      "to_connector_id": "left"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-entry",
      "element_type": "group",
      "title": "Entry & Setup",
      "color": "#4589ff",
      "position_x": 48,
      "position_y": 116,
      "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": 384,
      "position_y": 116,
      "width": 4184,
      "height": 876,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1",
          "sleep-2",
          "refresh-1",
          "wait-for-page-load-2",
          "sleep-3",
          "sleep-4",
          "wait-for-element-1",
          "wait-for-page-load-3",
          "sleep-5"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 1392,
      "position_y": 116,
      "width": 2504,
      "height": 876,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "text-contains-1",
          "text-contains-2",
          "element-exists-1",
          "element-exists-2",
          "click-1",
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 3072,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "scroll-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 2904,
      "position_y": 696,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort Clutch.co company listing scraper equivalent to the Octoparse template. Extracts company name, rating, review count, minimum project size, hourly rate, employee count, location, service focus, and website/profile URL from Clutch listing pages. Uses multiple listing URLs and follows enabled Next pagination for each URL, appending all pages to one CSV. Clutch.co returned Cloudflare/security verification in analysis and all autonomous test runs; this template detects that page, waits and refreshes once, then extracts only if listing HTML is available. A verified browser session/cookies are required when Cloudflare remains active.",
      "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": 1664,
      "position_y": 200,
      "width": 340,
      "height": 131,
      "z_index": 22,
      "data": {
        "block_id": "text-contains-1"
      }
    },
    {
      "id": "note-block-text-contains-2",
      "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": 3344,
      "position_y": 500,
      "width": 340,
      "height": 131,
      "z_index": 22,
      "data": {
        "block_id": "text-contains-2"
      }
    },
    {
      "id": "note-block-element-exists-1",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `a[href^='/profile/'], a[href*='clutch.co/profile/'], a[href*='/profile/'], a.provider__title-link, .provider__title a, .`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 2504,
      "position_y": 780,
      "width": 340,
      "height": 170,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (Company_name, Rating, Number_of_reviews, Min_project_size, Avg_hourly_rate). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 3176,
      "position_y": 780,
      "width": 340,
      "height": 138,
      "z_index": 22,
      "data": {
        "block_id": "structured-export-1"
      }
    },
    {
      "id": "note-block-element-exists-2",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `a[rel='next'], a[aria-label='Next']:not(.disabled):not([aria-disabled='true']), a[aria-label='next']:not(.disabled):not(`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 3512,
      "position_y": 780,
      "width": 340,
      "height": 170,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-2"
      }
    },
    {
      "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": 3680,
      "position_y": 500,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}