{
  "version": "1.0.0",
  "exported_at": "2026-06-02T19:15:00.000Z",
  "project": {
    "name": "Houzz Product Scraper",
    "description": "Scrapes Houzz product detail data from a list of product URLs, equivalent to the Octoparse Houzz Product Scraper: title, reviews, price, rating, description, MPN, product ID, manufacturer, seller, specs, category/style/collection, returns, and page URL. Navigation strategy: multi-URL input loop using navigate.urls[] plus loop-continue, appending each product page to one CSV. Note: attached sample Houzz product URLs currently return 404 / 'Shop Houzz - No Longer Available'; extraction columns are best-effort and avoid returning generic unavailable-page text as product data.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "set-window-size-1",
      "block_type": "process",
      "title": "Set Window Size",
      "description": "Set browser viewport size",
      "position_x": 120,
      "position_y": 220,
      "config": {
        "width": 1365,
        "height": 1000,
        "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://www.houzz.com/products/40-industrial-black-rectangle-mirror-prvw-vr~185166672",
          "https://www.houzz.com/products/fogless-dimmable-color-temperature-adjustable-led-mirror-matte-black-24x36-prvw-vr~155319715",
          "https://www.houzz.com/products/ellis-soft-corner-metal-rectangular-mirror-22x30-black-prvw-vr~172440770"
        ],
        "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": 792,
      "position_y": 220,
      "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": 1128,
      "position_y": 220,
      "config": {
        "selector": "body",
        "timeout": 20,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1464,
      "position_y": 220,
      "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": 1800,
      "position_y": 220,
      "config": {
        "rowSelector": "body",
        "fileName": "houzz-product-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "title",
            "selector": "(() => { const flat=x=>Array.isArray(x)?x.flatMap(flat):(x&&x['@graph']?flat(x['@graph']):[x]); const data=[...document.querySelectorAll('script[type=\"application/ld+json\"]')].flatMap(s=>{try{return flat(JSON.parse(s.textContent||''));}catch(e){return [];}}); const p=data.find(o=>o&&String(o['@type']||'').toLowerCase().includes('product')); const h1=(document.querySelector('h1')?.innerText||'').trim(); const slug=decodeURIComponent(location.pathname.split('/products/')[1]?.split('-prvw')[0]||'').replace(/-/g,' ').replace(/\\b\\w/g,c=>c.toUpperCase()); return (p?.name || document.querySelector('meta[property=\"og:title\"]')?.content || (/no longer available|Purchasing on Shop Houzz/i.test(h1)?slug:h1) || slug || '').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "number_of_reviews",
            "selector": "(() => { const unavailable=/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText); const flat=x=>Array.isArray(x)?x.flatMap(flat):(x&&x['@graph']?flat(x['@graph']):[x]); const data=[...document.querySelectorAll('script[type=\"application/ld+json\"]')].flatMap(s=>{try{return flat(JSON.parse(s.textContent||''));}catch(e){return [];}}); const p=data.find(o=>o&&String(o['@type']||'').toLowerCase().includes('product')); if(!p&&unavailable) return ''; return p?.aggregateRating?.reviewCount || p?.aggregateRating?.ratingCount || document.querySelector('[itemprop=\"reviewCount\"],[data-testid*=\"review\" i]')?.textContent?.match(/\\d+/)?.[0] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "price",
            "selector": "(() => { const unavailable=/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText); const flat=x=>Array.isArray(x)?x.flatMap(flat):(x&&x['@graph']?flat(x['@graph']):[x]); const data=[...document.querySelectorAll('script[type=\"application/ld+json\"]')].flatMap(s=>{try{return flat(JSON.parse(s.textContent||''));}catch(e){return [];}}); const p=data.find(o=>o&&String(o['@type']||'').toLowerCase().includes('product')); if(!p&&unavailable) return ''; const offer=Array.isArray(p?.offers)?p.offers[0]:p?.offers; const val=offer?.price || document.querySelector('[itemprop=\"price\"],[data-testid*=\"price\" i],.price')?.textContent?.trim() || ''; const cur=offer?.priceCurrency==='USD'?'$':''; return val && !String(val).startsWith('$') ? cur + val : val; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "original_price",
            "selector": "(() => { if(/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText)) return ''; const txt=document.body.innerText; const m=txt.match(/(?:Original Price|Was|List Price)\\s*[:\\n ]+([$€£]?\\s?\\d[\\d,.]*)/i); if(m) return m[1].trim(); const el=document.querySelector('[data-testid*=\"original\" i],[data-testid*=\"was\" i],.original-price,.list-price,.was-price,s,del'); return el?.textContent?.trim() || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "shipping_information",
            "selector": "(() => { if(/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText)) return ''; const txt=document.body.innerText; const m=txt.match(/(?:Shipping|Ships|Delivery)\\s*[:\\n ]+([^\\n]{0,160})/i); if(m) return m[1].trim(); const el=document.querySelector('[data-testid*=\"shipping\" i],[class*=\"shipping\" i],[class*=\"delivery\" i]'); return el?.textContent?.trim() || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "rating",
            "selector": "(() => { const unavailable=/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText); const flat=x=>Array.isArray(x)?x.flatMap(flat):(x&&x['@graph']?flat(x['@graph']):[x]); const data=[...document.querySelectorAll('script[type=\"application/ld+json\"]')].flatMap(s=>{try{return flat(JSON.parse(s.textContent||''));}catch(e){return [];}}); const p=data.find(o=>o&&String(o['@type']||'').toLowerCase().includes('product')); if(!p&&unavailable) return ''; const r=p?.aggregateRating?.ratingValue || document.querySelector('[itemprop=\"ratingValue\"],[data-testid*=\"rating\" i]')?.getAttribute('content') || document.querySelector('[itemprop=\"ratingValue\"],[data-testid*=\"rating\" i]')?.textContent?.match(/[0-5](?:\\.\\d+)?/)?.[0] || ''; return r ? `${r} out of 5 stars` : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "product_description",
            "selector": "(() => { const unavailable=/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText); const flat=x=>Array.isArray(x)?x.flatMap(flat):(x&&x['@graph']?flat(x['@graph']):[x]); const data=[...document.querySelectorAll('script[type=\"application/ld+json\"]')].flatMap(s=>{try{return flat(JSON.parse(s.textContent||''));}catch(e){return [];}}); const p=data.find(o=>o&&String(o['@type']||'').toLowerCase().includes('product')); if(!p&&unavailable) return ''; const el=document.querySelector('[itemprop=\"description\"],[data-testid*=\"description\" i],[class*=\"product-description\" i]'); return (p?.description || el?.textContent || '').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "mpn",
            "selector": "(() => { const unavailable=/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText); const flat=x=>Array.isArray(x)?x.flatMap(flat):(x&&x['@graph']?flat(x['@graph']):[x]); const data=[...document.querySelectorAll('script[type=\"application/ld+json\"]')].flatMap(s=>{try{return flat(JSON.parse(s.textContent||''));}catch(e){return [];}}); const p=data.find(o=>o&&String(o['@type']||'').toLowerCase().includes('product')); if(!p&&unavailable) return ''; if(p?.mpn) return p.mpn; const label=(names)=>{for(const el of document.querySelectorAll('dt,th,strong,b,span,div')){const t=(el.textContent||'').trim(); if(names.some(n=>new RegExp('^'+n+'\\\\s*:?$','i').test(t))){const sib=el.nextElementSibling; if(sib) return sib.innerText.trim(); const par=el.parentElement; if(par) return par.innerText.replace(el.innerText,'').replace(/^:/,'').trim();}} return '';}; return label(['MPN','Model Number','Model']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "product_id",
            "selector": "(() => { const flat=x=>Array.isArray(x)?x.flatMap(flat):(x&&x['@graph']?flat(x['@graph']):[x]); const data=[...document.querySelectorAll('script[type=\"application/ld+json\"]')].flatMap(s=>{try{return flat(JSON.parse(s.textContent||''));}catch(e){return [];}}); const p=data.find(o=>o&&String(o['@type']||'').toLowerCase().includes('product')); return p?.productID || p?.sku || location.href.match(/~(\\d+)/)?.[1] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "manufacturer",
            "selector": "(() => { const unavailable=/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText); const flat=x=>Array.isArray(x)?x.flatMap(flat):(x&&x['@graph']?flat(x['@graph']):[x]); const data=[...document.querySelectorAll('script[type=\"application/ld+json\"]')].flatMap(s=>{try{return flat(JSON.parse(s.textContent||''));}catch(e){return [];}}); const p=data.find(o=>o&&String(o['@type']||'').toLowerCase().includes('product')); if(!p&&unavailable) return ''; const label=(names)=>{for(const el of document.querySelectorAll('dt,th,strong,b,span,div')){const t=(el.textContent||'').trim(); if(names.some(n=>new RegExp('^'+n+'\\\\s*:?$','i').test(t))){const sib=el.nextElementSibling; if(sib) return sib.innerText.trim(); const par=el.parentElement; if(par) return par.innerText.replace(el.innerText,'').replace(/^:/,'').trim();}} return '';}; const b=p?.brand; return (typeof b==='string'?b:b?.name) || p?.manufacturer?.name || label(['Manufacturer','Brand']) || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "sold_by",
            "selector": "(() => { if(/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText)) return ''; const txt=document.body.innerText; const m=txt.match(/Sold By\\s*[:\\n ]+([^\\n]{1,120})/i); if(m) return m[1].trim(); const el=document.querySelector('[data-testid*=\"seller\" i],[class*=\"seller\" i],[class*=\"sold-by\" i]'); return el?.textContent?.replace(/Sold By/i,'').trim() || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "size_weight",
            "selector": "(() => { if(/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText)) return ''; const label=(names)=>{for(const el of document.querySelectorAll('dt,th,strong,b,span,div')){const t=(el.textContent||'').trim(); if(names.some(n=>new RegExp('^'+n+'\\\\s*:?$','i').test(t))){const sib=el.nextElementSibling; if(sib) return sib.innerText.trim(); const par=el.parentElement; if(par) return par.innerText.replace(el.innerText,'').replace(/^:/,'').trim();}} return '';}; const txt=document.body.innerText; const m=txt.match(/W\\s*\\d[^\\n]+(?:lb\\.?|lbs\\.?)/i); return label(['Size / Weight','Size & Weight','Dimensions','Weight']) || (m?m[0].trim():''); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "materials",
            "selector": "(() => { if(/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText)) return ''; const label=(names)=>{for(const el of document.querySelectorAll('dt,th,strong,b,span,div')){const t=(el.textContent||'').trim(); if(names.some(n=>new RegExp('^'+n+'\\\\s*:?$','i').test(t))){const sib=el.nextElementSibling; if(sib) return sib.innerText.trim(); const par=el.parentElement; if(par) return par.innerText.replace(el.innerText,'').replace(/^:/,'').trim();}} return '';}; return label(['Materials','Material']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "assembly_required",
            "selector": "(() => { if(/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText)) return ''; const label=(names)=>{for(const el of document.querySelectorAll('dt,th,strong,b,span,div')){const t=(el.textContent||'').trim(); if(names.some(n=>new RegExp('^'+n+'\\\\s*:?$','i').test(t))){const sib=el.nextElementSibling; if(sib) return sib.innerText.trim(); const par=el.parentElement; if(par) return par.innerText.replace(el.innerText,'').replace(/^:/,'').trim();}} return '';}; return label(['Assembly Required','Assembly']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "category",
            "selector": "(() => { const unavailable=/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText); const flat=x=>Array.isArray(x)?x.flatMap(flat):(x&&x['@graph']?flat(x['@graph']):[x]); const data=[...document.querySelectorAll('script[type=\"application/ld+json\"]')].flatMap(s=>{try{return flat(JSON.parse(s.textContent||''));}catch(e){return [];}}); const p=data.find(o=>o&&String(o['@type']||'').toLowerCase().includes('product')); if(!p&&unavailable) return ''; const label=(names)=>{for(const el of document.querySelectorAll('dt,th,strong,b,span,div')){const t=(el.textContent||'').trim(); if(names.some(n=>new RegExp('^'+n+'\\\\s*:?$','i').test(t))){const sib=el.nextElementSibling; if(sib) return sib.innerText.trim(); const par=el.parentElement; if(par) return par.innerText.replace(el.innerText,'').replace(/^:/,'').trim();}} return '';}; return p?.category || label(['Category']) || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "style",
            "selector": "(() => { if(/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText)) return ''; const label=(names)=>{for(const el of document.querySelectorAll('dt,th,strong,b,span,div')){const t=(el.textContent||'').trim(); if(names.some(n=>new RegExp('^'+n+'\\\\s*:?$','i').test(t))){const sib=el.nextElementSibling; if(sib) return sib.innerText.trim(); const par=el.parentElement; if(par) return par.innerText.replace(el.innerText,'').replace(/^:/,'').trim();}} return '';}; return label(['Style']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "collection",
            "selector": "(() => { if(/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText)) return ''; const label=(names)=>{for(const el of document.querySelectorAll('dt,th,strong,b,span,div')){const t=(el.textContent||'').trim(); if(names.some(n=>new RegExp('^'+n+'\\\\s*:?$','i').test(t))){const sib=el.nextElementSibling; if(sib) return sib.innerText.trim(); const par=el.parentElement; if(par) return par.innerText.replace(el.innerText,'').replace(/^:/,'').trim();}} return '';}; return label(['Collection']); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "returns",
            "selector": "(() => { if(/Purchasing on Shop Houzz|No Longer Available/i.test(document.body.innerText)) return ''; const txt=document.body.innerText.replace(/\\s+/g,' ').trim(); const m=txt.match(/Houzz offers a 30-day standard return policy[^.]*\\.(?:\\s*We also accept returns[^.]*\\.)?(?:\\s*View our full return policy\\.)?/i); if(m) return m[0].trim(); const el=document.querySelector('[data-testid*=\"return\" i],[class*=\"return\" i]'); return el?.textContent?.trim() || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "page_url",
            "selector": "location.href",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2136,
      "position_y": 220,
      "config": {
        "color": "bg-[#ff832b]"
      }
    }
  ],
  "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": 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": 1328,
      "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": 1728,
      "position_y": 116,
      "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": 2064,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes Houzz product detail data from a list of product URLs, equivalent to the Octoparse Houzz Product Scraper: title, reviews, price, rating, description, MPN, product ID, manufacturer, seller, specs, category/style/collection, returns, and page URL. Navigation strategy: multi-URL input loop using navigate.urls[] plus loop-continue, appending each product page to one CSV. Note: attached sample Houzz product URLs currently return 404 / 'Shop Houzz - No Longer Available'; extraction columns are best-effort and avoid returning generic unavailable-page text as product data.",
      "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 3 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 656,
      "position_y": 200,
      "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 (title, number_of_reviews, price, original_price, shipping_information). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2000,
      "position_y": 200,
      "width": 340,
      "height": 137,
      "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": 2336,
      "position_y": 200,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}