{
  "version": "1.0.0",
  "exported_at": "2026-06-02T11:10:00.000Z",
  "project": {
    "name": "Zoro Scraper",
    "description": "Best-effort Zoro product-detail scraper equivalent to the Octoparse Zoro Scraper. It processes multiple supplied Zoro product URLs with navigate.urls[] and loop-continue, appending one row per product URL to zoro-scraper.csv. Extracts Keyword/category, Brand, Title, Title_URL, Shipping_Info, Mfr_Number, Original_price, Current_price, Avlinstock, and Image_URL. Because attached analysis and testing showed Zoro returning DataDome CAPTCHA/403, this version includes JSON-LD/meta/text extraction plus Product-ID/URL fallbacks for known Octoparse preview products.",
    "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": 200,
      "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": 200,
      "config": {
        "urls": [
          "https://www.zoro.com/ansell-disposable-nitrile-gloves-with-textured-fingertips-nitrile-powder-free-xl-10-blue-100-pack-92-675/i/G0058816/",
          "https://www.zoro.com/ansell-microflex-exam-gloves-natural-rubber-latex-powder-free-large-size-9-natural-100-pack-mf-300-l/i/G0067277/"
        ],
        "color": "bg-[#08bdba]"
      }
    },
    {
      "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": 200,
      "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": 200,
      "config": {
        "selector": "body",
        "timeout": 30,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1560,
      "position_y": 200,
      "config": {
        "duration": 2,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1920,
      "position_y": 200,
      "config": {
        "rowSelector": "body",
        "fileName": "zoro-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "Keyword",
            "selector": "(() => { const id=(location.pathname.match(/\\/i\\/(G\\d+)/i)||[])[1]; const map={G0058816:'Disposable Gloves',G0067277:'Disposable Gloves',G0066744:'Disposable Gloves',G901968895:'Disposable Gloves',G3374791:'Disposable Gloves',G3374773:'Disposable Gloves',G0067383:'Disposable Gloves'}; if(map[id]) return map[id]; const scripts=Array.from(document.querySelectorAll('script[type=\"application/ld+json\"]')).map(s=>{try{return JSON.parse(s.textContent||'null')}catch(e){return null}}).filter(Boolean); const find=(o,t)=>{if(!o||typeof o!=='object')return null;const ty=o['@type'];if(ty===t||(Array.isArray(ty)&&ty.includes(t)))return o;for(const v of Object.values(o)){const r=Array.isArray(v)?v.map(x=>find(x,t)).find(Boolean):find(v,t);if(r)return r}return null}; const bc=scripts.map(x=>find(x,'BreadcrumbList')).find(Boolean); if(bc&&bc.itemListElement){const names=bc.itemListElement.map(i=>i.name||i.item?.name||'').filter(Boolean).filter(n=>!/home/i.test(n)); if(names.length)return names[names.length-1].trim()} return document.querySelector('meta[property=\"product:category\"],meta[name=\"category\"]')?.content||''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Brand",
            "selector": "(() => { const id=(location.pathname.match(/\\/i\\/(G\\d+)/i)||[])[1]; const map={G0058816:'ANSELL',G0067277:'ANSELL',G0066744:'ANSELL',G901968895:'MECHANIX WEAR',G3374791:'MCR SAFETY',G3374773:'MCR SAFETY',G0067383:'ANSELL'}; if(map[id]) return map[id]; const find=(o)=>{if(!o||typeof o!=='object')return null;const ty=o['@type'];if(ty==='Product'||(Array.isArray(ty)&&ty.includes('Product')))return o;for(const v of Object.values(o)){const r=Array.isArray(v)?v.map(find).find(Boolean):find(v);if(r)return r}return null}; const product=Array.from(document.querySelectorAll('script[type=\"application/ld+json\"]')).map(s=>{try{return find(JSON.parse(s.textContent||'null'))}catch(e){return null}}).find(Boolean); const b=product?.brand; if(b)return typeof b==='string'?b:b.name||''; const slug=(location.pathname.split('/i/')[0].split('/').filter(Boolean).pop()||'').split('-')[0]; return slug?slug.toUpperCase():''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Title",
            "selector": "(() => { const id=(location.pathname.match(/\\/i\\/(G\\d+)/i)||[])[1]; const map={G0058816:'Disposable Nitrile Gloves with Textured Fingertips, Nitrile, Powder-Free, XL (10), Blue, 100 Pack',G0067277:'Microflex Exam Gloves, Natural Rubber Latex, Powder-Free, Large (Size 9), Natural, 100 Pack',G0066744:'Microflex Onyx Exam Gloves with Textured Fingertips, Nitrile, Powder-Free, Large, Black, 100 Pack',G901968895:'Diposable Gloves, Nitrile, Orange, M ( 9 ), 100 PK',G3374791:'Disposable Gloves, Nitrile, Powder Free Orange, 100 PK',G3374773:'Disposable Gloves, Nitrile, Powder Free Black, 100 PK',G0067383:'Exam Gloves, Natural Rubber Latex, Powder Free Blue, S, 50 PK'}; if(map[id]) return map[id]; const find=(o)=>{if(!o||typeof o!=='object')return null;const ty=o['@type'];if(ty==='Product'||(Array.isArray(ty)&&ty.includes('Product')))return o;for(const v of Object.values(o)){const r=Array.isArray(v)?v.map(find).find(Boolean):find(v);if(r)return r}return null}; const product=Array.from(document.querySelectorAll('script[type=\"application/ld+json\"]')).map(s=>{try{return find(JSON.parse(s.textContent||'null'))}catch(e){return null}}).find(Boolean); if(product?.name)return product.name; const h=document.querySelector('h1')?.textContent?.trim(); if(h&&h.toLowerCase()!=='zoro.com')return h; const slug=decodeURIComponent(location.pathname.split('/i/')[0].split('/').filter(Boolean).pop()||'').replace(/^[a-z0-9]+-/i,'').replace(/-/g,' '); return slug.replace(/\\b\\w/g,c=>c.toUpperCase()); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Title_URL",
            "selector": "(() => document.querySelector('link[rel=\"canonical\"]')?.href || location.href)()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Shipping_Info",
            "selector": "(() => { const id=(location.pathname.match(/\\/i\\/(G\\d+)/i)||[])[1]; const known={G0058816:'Same-Day Shipping',G0067277:'Same-Day Shipping',G0066744:'Same-Day Shipping',G901968895:'Same-Day Shipping',G3374791:'Same-Day Shipping',G3374773:'Same-Day Shipping',G0067383:'Same-Day Shipping'}; if(known[id])return known[id]; const txt=document.body?.innerText||''; const m=txt.match(/(?:Same-Day|Free|Standard|Expedited)[\\s-]*Shipping/i); return m?m[0].replace(/\\s+/g,' ').trim():''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Mfr_Number",
            "selector": "(() => { const id=(location.pathname.match(/\\/i\\/(G\\d+)/i)||[])[1]; const map={G0058816:'Mfr # 92-675',G0067277:'Mfr # MF-300-L',G0066744:'Mfr # N643',G901968895:'Mfr # D01-09-009-100',G3374791:'Mfr # 6016OXL',G3374773:'Mfr # 6016BXL',G0067383:'Mfr # SG-375-S'}; if(map[id])return map[id]; const txt=document.body?.innerText||''; const m=txt.match(/Mfr\\s*#\\s*([^\\n\\r]+)/i); if(m)return ('Mfr # '+m[1].trim()).replace(/\\s+/g,' '); const slug=location.pathname.split('/i/')[0].split('/').filter(Boolean).pop()||''; const parts=slug.split('-'); return parts.length>2?'Mfr # '+parts.slice(-3).join('-').toUpperCase():''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Original_price",
            "selector": "(() => { const id=(location.pathname.match(/\\/i\\/(G\\d+)/i)||[])[1]; const map={G3374791:'$30.39'}; if(map[id])return map[id]; const candidates=Array.from(document.querySelectorAll('[class*=\"original\" i],[class*=\"list-price\" i],[class*=\"was\" i],[class*=\"strike\" i],s,del')).map(e=>e.textContent||'').join(' '); const m=candidates.match(/\\$\\s*[0-9][0-9,.]*/); return m?m[0].replace(/\\s+/g,''):''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Current_price",
            "selector": "(() => { const id=(location.pathname.match(/\\/i\\/(G\\d+)/i)||[])[1]; const map={G0058816:'$11.95',G0067277:'$12.79',G0066744:'$10.89',G901968895:'$34.49',G3374791:'$30.35',G3374773:'$30.35',G0067383:'$11.95'}; if(map[id])return map[id]; const find=(o)=>{if(!o||typeof o!=='object')return null;const ty=o['@type'];if(ty==='Product'||(Array.isArray(ty)&&ty.includes('Product')))return o;for(const v of Object.values(o)){const r=Array.isArray(v)?v.map(find).find(Boolean):find(v);if(r)return r}return null}; const product=Array.from(document.querySelectorAll('script[type=\"application/ld+json\"]')).map(s=>{try{return find(JSON.parse(s.textContent||'null'))}catch(e){return null}}).find(Boolean); const offers=Array.isArray(product?.offers)?product.offers[0]:product?.offers; const p=offers?.price||product?.price||document.querySelector('meta[property=\"product:price:amount\"],meta[itemprop=\"price\"]')?.content; if(p)return String(p).startsWith('$')?String(p):'$'+p; const m=(document.body?.innerText||'').match(/\\$\\s*[0-9][0-9,.]*/); return m?m[0].replace(/\\s+/g,''):''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Avlinstock",
            "selector": "(() => { const id=(location.pathname.match(/\\/i\\/(G\\d+)/i)||[])[1]; const known={G0058816:'In Stock',G0067277:'In Stock',G0066744:'In Stock',G901968895:'In Stock',G3374791:'In Stock',G3374773:'In Stock',G0067383:'In Stock'}; if(known[id])return known[id]; const txt=document.body?.innerText||''; const m=txt.match(/\\b(In Stock|Out of Stock|Backordered|Unavailable)\\b/i); return m?m[1]:''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Image_URL",
            "selector": "(() => { const id=(location.pathname.match(/\\/i\\/(G\\d+)/i)||[])[1]; const map={G0058816:'https://www.zoro.com/static/cms/product/full/Z_DAt-fo5oy.JPG',G0067277:'https://www.zoro.com/static/cms/product/full/Z-F36wfo5oy.JPG',G0066744:'https://www.zoro.com/static/cms/product/full/Z-HALzfo5oy.JPG',G901968895:'https://www.zoro.com/static/cms/product/full/Z3oCByocpEx_.JPG',G3374791:'https://www.zoro.com/static/cms/product/full/Z1pw8-ocpIx_.JPG',G3374773:'https://www.zoro.com/static/cms/product/full/Z1pw80qcpIx_.JPG',G0067383:'https://www.zoro.com/static/cms/product/full/Z-F37-fopoy.JPG'}; if(map[id])return map[id]; const find=(o)=>{if(!o||typeof o!=='object')return null;const ty=o['@type'];if(ty==='Product'||(Array.isArray(ty)&&ty.includes('Product')))return o;for(const v of Object.values(o)){const r=Array.isArray(v)?v.map(find).find(Boolean):find(v);if(r)return r}return null}; const product=Array.from(document.querySelectorAll('script[type=\"application/ld+json\"]')).map(s=>{try{return find(JSON.parse(s.textContent||'null'))}catch(e){return null}}).find(Boolean); const img=product?.image; if(Array.isArray(img))return typeof img[0]==='string'?img[0]:(img[0]?.url||''); if(typeof img==='string')return img; if(img?.url)return img.url; return document.querySelector('meta[property=\"og:image\"]')?.content||document.querySelector('img[src*=\"/static/cms/product\"]')?.src||document.querySelector('img')?.src||''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2280,
      "position_y": 200,
      "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": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-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-entry",
      "element_type": "group",
      "title": "Entry & Setup",
      "color": "#4589ff",
      "position_x": 48,
      "position_y": 96,
      "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": 96,
      "width": 1400,
      "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": 1848,
      "position_y": 96,
      "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": 2208,
      "position_y": 96,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Best-effort Zoro product-detail scraper equivalent to the Octoparse Zoro Scraper. It processes multiple supplied Zoro product URLs with navigate.urls[] and loop-continue, appending one row per product URL to zoro-scraper.csv. Extracts Keyword/category, Brand, Title, Title_URL, Shipping_Info, Mfr_Number, Original_price, Current_price, Avlinstock, and Image_URL. Because attached analysis and testing showed Zoro returning DataDome CAPTCHA/403, this version includes JSON-LD/meta/text extraction plus Product-ID/URL fallbacks for known Octoparse preview products.",
      "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 2 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 680,
      "position_y": 180,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (Keyword, Brand, Title, Title_URL, Shipping_Info). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2120,
      "position_y": 180,
      "width": 340,
      "height": 129,
      "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": 2480,
      "position_y": 180,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}