{
  "version": "1.0.0",
  "exported_at": "2026-06-02T00:00:00.000Z",
  "project": {
    "name": "GoYellowde Leads Scraper",
    "description": "Scrapes GoYellow.de lead results for the keyword/location example Auto in Berlin, extracting company title, branch/category, opening hours, street, ZIP, city, email, phone, fax, Facebook/social links, website, about text, languages, and source URL. Pagination is handled with a click-next loop: an injected script normalizes each results page into stable hidden rows and creates a #uscraper-next-page-link when a next-page link is detected; the scraper clicks it until no next page remains. Selectors are best-effort because attached analysis contained Facebook sample pages rather than GoYellow.de DOM snapshots. Output filename changed to snake_case to avoid polluted append data from earlier test runs.",
    "color": "bg-[#4589ff]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 120,
      "position_y": 220,
      "config": {
        "url": "https://www.goyellow.de/suche/Auto/Berlin",
        "color": "bg-[#4589ff]",
        "tags": [
          "goyellow",
          "lead-search",
          "auto-berlin"
        ]
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 456,
      "position_y": 220,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 792,
      "position_y": 220,
      "config": {
        "duration": 2,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 1128,
      "position_y": 220,
      "config": {
        "jsCode": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const first=(arr)=>arr.find(v=>norm(v));const abs=u=>{try{return new URL(u,location.href).href}catch(e){return u||''}};const dec=u=>{try{let x=new URL(abs(u));if(x.hostname==='l.facebook.com'&&x.searchParams.get('u'))return decodeURIComponent(x.searchParams.get('u'));return x.href}catch(e){return u||''}};Array.from(document.querySelectorAll('button,a')).some(el=>{let t=norm(el.innerText||el.textContent);if(/^(alle akzeptieren|akzeptieren|zustimmen|accept|ok|verstanden)$/i.test(t)){try{el.click()}catch(e){}return true}return false});document.querySelector('#uscraper-goyellow-rows')?.remove();document.querySelector('#uscraper-next-page-link')?.remove();const box=document.createElement('div');box.id='uscraper-goyellow-rows';box.style.display='none';document.body.appendChild(box);const make=(d)=>{let r=document.createElement('div');r.className='uscraper-lead-row';Object.entries(d).forEach(([k,v])=>r.setAttribute('data-'+k,norm(v)));box.appendChild(r)};const getJsonLd=()=>{let out=[];document.querySelectorAll('script[type=\"application/ld+json\"]').forEach(s=>{try{let j=JSON.parse(s.textContent);let a=Array.isArray(j)?j:[j];a.forEach(x=>{if(x&&x['@graph'])a=a.concat(x['@graph']);if(x&&/(LocalBusiness|Organization|Dentist|Store|AutomotiveBusiness)/i.test(String(x['@type']||'')))out.push(x)})}catch(e){}});return out};let jsonRows=getJsonLd();jsonRows.forEach(x=>{let adr=x.address||{};let same=Array.isArray(x.sameAs)?x.sameAs.join(' | '):(x.sameAs||'');let social=Array.isArray(x.sameAs)?x.sameAs.filter(u=>/facebook\\.com|instagram\\.com|linkedin\\.com|youtube\\.com|twitter\\.com|x\\.com/i.test(u)).join(' | '):(/facebook\\.com|instagram\\.com|linkedin\\.com|youtube\\.com|twitter\\.com|x\\.com/i.test(String(x.sameAs||''))?String(x.sameAs):'');make({'titel':x.name||'','branche':Array.isArray(x['@type'])?x['@type'].join(', '):(x['@type']||''),'oeffnungszeiten':Array.isArray(x.openingHours)?x.openingHours.join(' | '):(x.openingHours||''),'strasse':adr.streetAddress||'','plz':adr.postalCode||'','stadt':adr.addressLocality||'','e-mail':x.email||'','telefon':x.telephone||'','fax':x.faxNumber||'','facebook':/facebook\\.com/i.test(same)?same.split(/\\s*\\|\\s*/).find(u=>/facebook\\.com/i.test(u))||'':'','website':x.url||'','social-media-links':social,'ueber-uns':x.description||'','sprachen':'','source-url':location.href})});let selectors='article,[data-testid*=result i],[class*=result i],[class*=treffer i],[class*=entry i],[class*=listing i],li';let nodes=Array.from(document.querySelectorAll(selectors)).filter(el=>{let t=norm(el.innerText);return t.length>60&&t.length<5000&&(/@|\\b(?:\\+49|0)[1-9][0-9\\s().\\/-]{5,}|\\b\\d{5}\\b|facebook\\.com|mailto:|tel:/i.test(t)||el.querySelector('a[href^=\"tel:\"],a[href^=\"mailto:\"],a[href*=\"facebook.com\"],a[href*=\"l.facebook.com\"]'))});nodes=nodes.filter((el,i,a)=>!a.some((o,j)=>i!==j&&o.contains(el)&&norm(o.innerText).length<norm(el.innerText).length*2));if(!jsonRows.length&&nodes.length){nodes.forEach(el=>{let t=norm(el.innerText);let lines=t.split(/(?=\\b(?:Mo|Di|Mi|Do|Fr|Sa|So)\\b)|\\s{2,}|\\n/).map(norm).filter(Boolean);let title=norm(first([el.querySelector('h1,h2,h3,[class*=title i],[class*=name i]')?.innerText,el.querySelector('a[href]')?.innerText,lines[0]]));let email=norm(el.querySelector('a[href^=\"mailto:\"]')?.getAttribute('href')?.replace(/^mailto:/i,'')||(t.match(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}/i)||[])[0]);let phone=norm(el.querySelector('a[href^=\"tel:\"]')?.getAttribute('href')?.replace(/^tel:/i,'')||(t.match(/(?:\\+49\\s?|0)[1-9][0-9\\s().\\/-]{5,}/)||[])[0]);let fax=norm(((t.match(/Fax\\s*:?\\s*((?:\\+49\\s?|0)[1-9][0-9\\s().\\/-]{5,})/i)||[])[1]||''));let street=norm((t.match(/([A-ZÄÖÜ][A-Za-zÄÖÜäöüß.\\- ]+(?:str\\.|straße|strasse|weg|platz|allee|ring|damm|gasse|ufer)\\s*\\d+[\\w\\-/]*)/i)||[])[1]);let pc=(t.match(/\\b(\\d{5})\\s+([A-ZÄÖÜ][A-Za-zÄÖÜäöüß .\\-()]+)\\b/)||[]);let branch=norm(first([el.querySelector('[class*=branch i],[class*=branche i],[class*=category i],[class*=rubrik i]')?.innerText,lines.find(l=>l!==title&&!/@|\\b(?:\\+49|0)\\d|\\b\\d{5}\\b/i.test(l))]));let links=Array.from(el.querySelectorAll('a[href]')).map(a=>dec(a.getAttribute('href'))).filter(Boolean);let facebook=links.find(u=>/facebook\\.com/i.test(u))||'';let social=Array.from(new Set(links.filter(u=>/facebook\\.com|instagram\\.com|linkedin\\.com|youtube\\.com|twitter\\.com|x\\.com/i.test(u)))).join(' | ');let website=links.find(u=>/^https?:/i.test(u)&&!/goyellow\\.de|facebook\\.com|google\\.|maps\\.|mailto:|tel:/i.test(u))||'';let hours=(t.match(/\\bMo\\b[\\s\\S]{0,300}(?=\\b(?:E-Mail|Email|Telefon|Tel\\.|Fax|Web|Website)\\b|$)/i)||[])[0]||'';let lang=(t.match(/(?:Sprachen?|Languages?)\\s*:?\\s*([A-Za-zÄÖÜäöüß,;\\s-]{3,200})/i)||[])[1]||'';make({'titel':title,'branche':branch,'oeffnungszeiten':hours,'strasse':street,'plz':pc[1]||'','stadt':pc[2]||'','e-mail':email,'telefon':phone,'fax':fax,'facebook':facebook,'website':website,'social-media-links':social,'ueber-uns':t.slice(0,700),'sprachen':lang,'source-url':location.href})})}let next=Array.from(document.querySelectorAll('a[href],button')).find(a=>{let txt=norm(a.innerText||a.textContent||a.getAttribute('aria-label')||a.getAttribute('title'));let href=a.getAttribute('href')||'';let disabled=false;try{disabled=a.matches('[disabled],[aria-disabled=\"true\"]')||/disabled|inactive/i.test(a.className||'')}catch(e){disabled=/disabled|inactive/i.test(a.className||'')}return !disabled&&(/^(weiter|nächste|naechste|next|>)$/i.test(txt)||/seite=\\d+|page=\\d+|\\/seite\\/\\d+/i.test(href)&&/next|weiter|näch|naech/i.test(txt+' '+a.className))});if(next){let l=document.createElement('a');l.id='uscraper-next-page-link';l.href=next.href||next.getAttribute('href')||location.href;l.textContent='UScraper next page';l.style.cssText='position:fixed;left:10px;bottom:10px;z-index:2147483647;background:#ff832b;color:#000;padding:8px;display:block';document.body.appendChild(l)}})();",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1464,
      "position_y": 220,
      "config": {
        "selector": "#uscraper-goyellow-rows",
        "timeout": 10,
        "visible": false,
        "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": "#uscraper-goyellow-rows .uscraper-lead-row",
        "fileName": "goyellow_de_leads_scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "tags": [
          "lead-data",
          "synthetic-rows"
        ],
        "columns": [
          {
            "name": "titel",
            "selector": "",
            "attribute": "data-titel"
          },
          {
            "name": "branche",
            "selector": "",
            "attribute": "data-branche"
          },
          {
            "name": "oeffnungszeiten",
            "selector": "",
            "attribute": "data-oeffnungszeiten"
          },
          {
            "name": "strasse",
            "selector": "",
            "attribute": "data-strasse"
          },
          {
            "name": "plz",
            "selector": "",
            "attribute": "data-plz"
          },
          {
            "name": "stadt",
            "selector": "",
            "attribute": "data-stadt"
          },
          {
            "name": "e_mail",
            "selector": "",
            "attribute": "data-e-mail"
          },
          {
            "name": "telefon",
            "selector": "",
            "attribute": "data-telefon"
          },
          {
            "name": "fax",
            "selector": "",
            "attribute": "data-fax"
          },
          {
            "name": "facebook",
            "selector": "",
            "attribute": "data-facebook"
          },
          {
            "name": "website",
            "selector": "",
            "attribute": "data-website"
          },
          {
            "name": "social_media_links",
            "selector": "",
            "attribute": "data-social-media-links"
          },
          {
            "name": "ueber_uns",
            "selector": "",
            "attribute": "data-ueber-uns"
          },
          {
            "name": "sprachen",
            "selector": "",
            "attribute": "data-sprachen"
          },
          {
            "name": "source_url",
            "selector": "",
            "attribute": "data-source-url"
          }
        ]
      }
    },
    {
      "block_id": "element-exists-1",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 2136,
      "position_y": 220,
      "config": {
        "selector": "#uscraper-next-page-link[href]",
        "color": "bg-[#ff832b]"
      }
    },
    {
      "block_id": "click-1",
      "block_type": "process",
      "title": "Click",
      "description": "Click on element",
      "position_x": 2472,
      "position_y": 520,
      "config": {
        "selector": "#uscraper-next-page-link[href]",
        "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": 2808,
      "position_y": 520,
      "config": {
        "timeout": 30,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-2",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 3144,
      "position_y": 520,
      "config": {
        "duration": 2,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-2",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 3480,
      "position_y": 520,
      "config": {
        "jsCode": "(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const first=(arr)=>arr.find(v=>norm(v));const abs=u=>{try{return new URL(u,location.href).href}catch(e){return u||''}};const dec=u=>{try{let x=new URL(abs(u));if(x.hostname==='l.facebook.com'&&x.searchParams.get('u'))return decodeURIComponent(x.searchParams.get('u'));return x.href}catch(e){return u||''}};document.querySelector('#uscraper-goyellow-rows')?.remove();document.querySelector('#uscraper-next-page-link')?.remove();const box=document.createElement('div');box.id='uscraper-goyellow-rows';box.style.display='none';document.body.appendChild(box);const make=(d)=>{let r=document.createElement('div');r.className='uscraper-lead-row';Object.entries(d).forEach(([k,v])=>r.setAttribute('data-'+k,norm(v)));box.appendChild(r)};const getJsonLd=()=>{let out=[];document.querySelectorAll('script[type=\"application/ld+json\"]').forEach(s=>{try{let j=JSON.parse(s.textContent);let a=Array.isArray(j)?j:[j];a.forEach(x=>{if(x&&x['@graph'])a=a.concat(x['@graph']);if(x&&/(LocalBusiness|Organization|Dentist|Store|AutomotiveBusiness)/i.test(String(x['@type']||'')))out.push(x)})}catch(e){}});return out};let jsonRows=getJsonLd();jsonRows.forEach(x=>{let adr=x.address||{};let same=Array.isArray(x.sameAs)?x.sameAs.join(' | '):(x.sameAs||'');let social=Array.isArray(x.sameAs)?x.sameAs.filter(u=>/facebook\\.com|instagram\\.com|linkedin\\.com|youtube\\.com|twitter\\.com|x\\.com/i.test(u)).join(' | '):(/facebook\\.com|instagram\\.com|linkedin\\.com|youtube\\.com|twitter\\.com|x\\.com/i.test(String(x.sameAs||''))?String(x.sameAs):'');make({'titel':x.name||'','branche':Array.isArray(x['@type'])?x['@type'].join(', '):(x['@type']||''),'oeffnungszeiten':Array.isArray(x.openingHours)?x.openingHours.join(' | '):(x.openingHours||''),'strasse':adr.streetAddress||'','plz':adr.postalCode||'','stadt':adr.addressLocality||'','e-mail':x.email||'','telefon':x.telephone||'','fax':x.faxNumber||'','facebook':/facebook\\.com/i.test(same)?same.split(/\\s*\\|\\s*/).find(u=>/facebook\\.com/i.test(u))||'':'','website':x.url||'','social-media-links':social,'ueber-uns':x.description||'','sprachen':'','source-url':location.href})});let selectors='article,[data-testid*=result i],[class*=result i],[class*=treffer i],[class*=entry i],[class*=listing i],li';let nodes=Array.from(document.querySelectorAll(selectors)).filter(el=>{let t=norm(el.innerText);return t.length>60&&t.length<5000&&(/@|\\b(?:\\+49|0)[1-9][0-9\\s().\\/-]{5,}|\\b\\d{5}\\b|facebook\\.com|mailto:|tel:/i.test(t)||el.querySelector('a[href^=\"tel:\"],a[href^=\"mailto:\"],a[href*=\"facebook.com\"],a[href*=\"l.facebook.com\"]'))});nodes=nodes.filter((el,i,a)=>!a.some((o,j)=>i!==j&&o.contains(el)&&norm(o.innerText).length<norm(el.innerText).length*2));if(!jsonRows.length&&nodes.length){nodes.forEach(el=>{let t=norm(el.innerText);let lines=t.split(/(?=\\b(?:Mo|Di|Mi|Do|Fr|Sa|So)\\b)|\\s{2,}|\\n/).map(norm).filter(Boolean);let title=norm(first([el.querySelector('h1,h2,h3,[class*=title i],[class*=name i]')?.innerText,el.querySelector('a[href]')?.innerText,lines[0]]));let email=norm(el.querySelector('a[href^=\"mailto:\"]')?.getAttribute('href')?.replace(/^mailto:/i,'')||(t.match(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}/i)||[])[0]);let phone=norm(el.querySelector('a[href^=\"tel:\"]')?.getAttribute('href')?.replace(/^tel:/i,'')||(t.match(/(?:\\+49\\s?|0)[1-9][0-9\\s().\\/-]{5,}/)||[])[0]);let fax=norm(((t.match(/Fax\\s*:?\\s*((?:\\+49\\s?|0)[1-9][0-9\\s().\\/-]{5,})/i)||[])[1]||''));let street=norm((t.match(/([A-ZÄÖÜ][A-Za-zÄÖÜäöüß.\\- ]+(?:str\\.|straße|strasse|weg|platz|allee|ring|damm|gasse|ufer)\\s*\\d+[\\w\\-/]*)/i)||[])[1]);let pc=(t.match(/\\b(\\d{5})\\s+([A-ZÄÖÜ][A-Za-zÄÖÜäöüß .\\-()]+)\\b/)||[]);let branch=norm(first([el.querySelector('[class*=branch i],[class*=branche i],[class*=category i],[class*=rubrik i]')?.innerText,lines.find(l=>l!==title&&!/@|\\b(?:\\+49|0)\\d|\\b\\d{5}\\b/i.test(l))]));let links=Array.from(el.querySelectorAll('a[href]')).map(a=>dec(a.getAttribute('href'))).filter(Boolean);let facebook=links.find(u=>/facebook\\.com/i.test(u))||'';let social=Array.from(new Set(links.filter(u=>/facebook\\.com|instagram\\.com|linkedin\\.com|youtube\\.com|twitter\\.com|x\\.com/i.test(u)))).join(' | ');let website=links.find(u=>/^https?:/i.test(u)&&!/goyellow\\.de|facebook\\.com|google\\.|maps\\.|mailto:|tel:/i.test(u))||'';let hours=(t.match(/\\bMo\\b[\\s\\S]{0,300}(?=\\b(?:E-Mail|Email|Telefon|Tel\\.|Fax|Web|Website)\\b|$)/i)||[])[0]||'';let lang=(t.match(/(?:Sprachen?|Languages?)\\s*:?\\s*([A-Za-zÄÖÜäöüß,;\\s-]{3,200})/i)||[])[1]||'';make({'titel':title,'branche':branch,'oeffnungszeiten':hours,'strasse':street,'plz':pc[1]||'','stadt':pc[2]||'','e-mail':email,'telefon':phone,'fax':fax,'facebook':facebook,'website':website,'social-media-links':social,'ueber-uns':t.slice(0,700),'sprachen':lang,'source-url':location.href})})}let next=Array.from(document.querySelectorAll('a[href],button')).find(a=>{let txt=norm(a.innerText||a.textContent||a.getAttribute('aria-label')||a.getAttribute('title'));let href=a.getAttribute('href')||'';let disabled=false;try{disabled=a.matches('[disabled],[aria-disabled=\"true\"]')||/disabled|inactive/i.test(a.className||'')}catch(e){disabled=/disabled|inactive/i.test(a.className||'')}return !disabled&&(/^(weiter|nächste|naechste|next|>)$/i.test(txt)||/seite=\\d+|page=\\d+|\\/seite\\/\\d+/i.test(href)&&/next|weiter|näch|naech/i.test(txt+' '+a.className))});if(next){let l=document.createElement('a');l.id='uscraper-next-page-link';l.href=next.href||next.getAttribute('href')||location.href;l.textContent='UScraper next page';l.style.cssText='position:fixed;left:10px;bottom:10px;z-index:2147483647;background:#ff832b;color:#000;padding:8px;display:block';document.body.appendChild(l)}})();",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "wait-for-element-2",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 3816,
      "position_y": 520,
      "config": {
        "selector": "#uscraper-goyellow-rows",
        "timeout": 10,
        "visible": false,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "end-1",
      "block_type": "output",
      "title": "End",
      "description": "Terminate execution flow",
      "position_x": 2136,
      "position_y": 520,
      "config": {
        "color": "bg-[#8d8d8d]"
      }
    }
  ],
  "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": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-1",
      "from_connector_id": "right",
      "to_block_id": "inject-javascript-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-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-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-2",
      "from_connector_id": "right",
      "to_block_id": "inject-javascript-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-2",
      "from_connector_id": "right",
      "to_block_id": "wait-for-element-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-element-2",
      "from_connector_id": "right",
      "to_block_id": "structured-export-1",
      "to_connector_id": "left"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 48,
      "position_y": 116,
      "width": 4016,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1",
          "wait-for-element-1",
          "wait-for-page-load-2",
          "sleep-2",
          "wait-for-element-2"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 1056,
      "position_y": 116,
      "width": 2672,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1",
          "inject-javascript-2"
        ]
      }
    },
    {
      "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": 656,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "element-exists-1",
          "click-1"
        ]
      }
    },
    {
      "id": "group-control",
      "element_type": "group",
      "title": "Control Flow",
      "color": "#8d8d8d",
      "position_x": 2064,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "end-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes GoYellow.de lead results for the keyword/location example Auto in Berlin, extracting company title, branch/category, opening hours, street, ZIP, city, email, phone, fax, Facebook/social links, website, about text, languages, and source URL. Pagination is handled with a click-next loop: an injected script normalizes each results page into stable hidden rows and creates a #uscraper-next-page-link when a next-page link is detected; the scraper clicks it until no next page remains. Selectors are best-effort because attached analysis contained Facebook sample pages rather than GoYellow.de DOM snapshots. Output filename changed to snake_case to avoid polluted append data from earlier test runs.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-inject-javascript-1",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const first=(arr)=>arr.find(v=>norm(v));const...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1328,
      "position_y": 200,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Extracts rows matching `#uscraper-goyellow-rows .uscraper-lead-row`. Confirm row count > 0 before running at scale.",
      "color": "#ee5396",
      "position_x": 2000,
      "position_y": 200,
      "width": 340,
      "height": 118,
      "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 `#uscraper-next-page-link[href]`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 2336,
      "position_y": 200,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-1"
      }
    },
    {
      "id": "note-block-click-1",
      "element_type": "note",
      "title": "Note: Click",
      "content": "Pagination click — add waits after this block; the page reloads asynchronously.",
      "color": "#ee5396",
      "position_x": 2672,
      "position_y": 500,
      "width": 316,
      "height": 106,
      "z_index": 22,
      "data": {
        "block_id": "click-1"
      }
    },
    {
      "id": "note-block-inject-javascript-2",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(()=>{const norm=s=>(s||'').replace(/\\s+/g,' ').trim();const first=(arr)=>arr.find(v=>norm(v));const...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 3680,
      "position_y": 500,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-2"
      }
    }
  ]
}