{
  "version": "1.0.0",
  "exported_at": "2026-06-03T12:00:00.000Z",
  "project": {
    "name": "Stepstone Listing Scraper by url",
    "description": "Scrapes Stepstone Germany job listings from multiple listing/search URLs, extracting job title, job URL, company, location, home-office indicator, description, publishing time, and logo/image URL. Uses click-based Next/Weiter pagination on each listing URL and appends all pages into one CSV. Best-effort template because the supplied sample job-detail URL currently returns 404 and Stepstone uses dynamic generated classes.",
    "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": 260,
      "config": {
        "width": 1920,
        "height": 1080,
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 480,
      "position_y": 260,
      "config": {
        "urls": [
          "https://www.stepstone.de/jobs/kundenservice/in-deutschland?radius=30&action=facet_selected%3bdisciplines%3bKundenservice&searchOrigin=Resultlist_top-search&di=Kundenservice",
          "https://www.stepstone.de/jobs/kundenservice/in-deutschland?radius=30&searchOrigin=Resultlist_top-search",
          "https://www.stepstone.de/jobs/auto/in-berlin?radius=50&searchOrigin=Resultlist_top-search"
        ],
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 840,
      "position_y": 260,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Run custom JavaScript",
      "position_x": 1200,
      "position_y": 260,
      "config": {
        "jsCode": "const labels = ['alle akzeptieren','akzeptieren','zustimmen','accept all','accept']; const nodes = Array.from(document.querySelectorAll('button,a,input[type=\"button\"],input[type=\"submit\"]')); const target = nodes.find(el => { const txt = (el.innerText || el.value || el.getAttribute('aria-label') || '').trim().toLowerCase(); return labels.some(label => txt.includes(label)); }); if (target) { target.click(); } return !!target;",
        "waitForCompletion": true,
        "timeout": 10
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1560,
      "position_y": 260,
      "config": {
        "duration": 2
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1920,
      "position_y": 260,
      "config": {
        "selector": "article:has(a[href*=\"/stellenangebote--\"]), li:has(a[href*=\"/stellenangebote--\"]), div[data-testid*=\"job-card\" i]:has(a[href*=\"/stellenangebote--\"]), div[data-at*=\"job-item\" i]:has(a[href*=\"/stellenangebote--\"])",
        "timeout": 30,
        "visible": true
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 2280,
      "position_y": 260,
      "config": {
        "rowSelector": "article:has(a[href*=\"/stellenangebote--\"]), li:has(a[href*=\"/stellenangebote--\"]), div[data-testid*=\"job-card\" i]:has(a[href*=\"/stellenangebote--\"]), div[data-at*=\"job-item\" i]:has(a[href*=\"/stellenangebote--\"])",
        "fileName": "stepstone-listing-scraper-by-url.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "job_titel",
            "selector": "(() => { const link = ROW.querySelector('a[href*=\"/stellenangebote--\"]'); const t = ROW.querySelector('[data-testid*=\"title\" i], [data-at*=\"title\" i], h2, h3'); return (t?.textContent || link?.textContent || '').trim().replace(/\\s+/g, ' '); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "titel_url",
            "selector": "(() => ROW.querySelector('a[href*=\"/stellenangebote--\"]')?.href || '')()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "name_des_unternehmens",
            "selector": "(() => { const el = ROW.querySelector('[data-testid*=\"company\" i], [data-at*=\"company\" i], [class*=\"company\" i]'); if (el) return el.textContent.trim().replace(/\\s+/g, ' '); const lines = ROW.innerText.split('\\n').map(s => s.trim()).filter(Boolean); return lines[1] || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "standort",
            "selector": "(() => { const el = ROW.querySelector('[data-testid*=\"location\" i], [data-at*=\"location\" i], [class*=\"location\" i]'); if (el) return el.textContent.trim().replace(/\\s+/g, ' '); const txt = ROW.innerText; const m = txt.match(/(?:Berlin|Hamburg|München|Muenchen|Frankfurt|Düsseldorf|Duesseldorf|Köln|Koeln|Stuttgart|Hannover|Saarbrücken|Saarbruecken|Deutschland)(?:[^\\n]*)/i); return m ? m[0].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "home_moeglich",
            "selector": "(() => { const text = ROW.innerText.replace(/\\s+/g, ' '); const m = text.match(/(?:Teilweise\\s+)?Home[-\\s]?Office(?:\\s+möglich)?|Remote|Mobiles Arbeiten/i); return m ? m[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_beschreibung",
            "selector": "(() => { const el = ROW.querySelector('[data-testid*=\"description\" i], [data-testid*=\"teaser\" i], [data-at*=\"description\" i], [data-at*=\"teaser\" i], p'); return (el?.textContent || ROW.innerText).trim().replace(/\\s+/g, ' ').slice(0, 1200); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "erscheinen",
            "selector": "(() => { const t = ROW.querySelector('time[datetime], [datetime]'); if (t) return t.getAttribute('datetime') || t.textContent.trim(); const text = ROW.innerText; const m = text.match(/\\b(?:Heute|Gestern|Vor \\d+ Tagen|\\d{4}-\\d{2}-\\d{2}[^\\s]*)\\b/i); return m ? m[0] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "image_url",
            "selector": "(() => ROW.querySelector('img[src*=\"/logo\"], img')?.src || '')()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "element-exists-1",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 2640,
      "position_y": 260,
      "config": {
        "selector": "a[rel=\"next\"]:not([aria-disabled=\"true\"]):not(.disabled), a[aria-label*=\"Nächste\" i]:not([aria-disabled=\"true\"]):not(.disabled), button[aria-label*=\"Nächste\" i]:not([disabled]):not(.disabled), a[aria-label*=\"Weiter\" i]:not([aria-disabled=\"true\"]):not(.disabled), button[aria-label*=\"Weiter\" i]:not([disabled]):not(.disabled), a[aria-label*=\"Next\" i]:not([aria-disabled=\"true\"]):not(.disabled), button[aria-label*=\"Next\" i]:not([disabled]):not(.disabled)"
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2640,
      "position_y": 580,
      "config": {}
    },
    {
      "block_id": "click-1",
      "block_type": "process",
      "title": "Click",
      "description": "Click on element",
      "position_x": 3000,
      "position_y": 580,
      "config": {
        "selector": "a[rel=\"next\"]:not([aria-disabled=\"true\"]):not(.disabled), a[aria-label*=\"Nächste\" i]:not([aria-disabled=\"true\"]):not(.disabled), button[aria-label*=\"Nächste\" i]:not([disabled]):not(.disabled), a[aria-label*=\"Weiter\" i]:not([aria-disabled=\"true\"]):not(.disabled), button[aria-label*=\"Weiter\" i]:not([disabled]):not(.disabled), a[aria-label*=\"Next\" i]:not([aria-disabled=\"true\"]):not(.disabled), button[aria-label*=\"Next\" i]:not([disabled]):not(.disabled)",
        "timeout": 10
      }
    },
    {
      "block_id": "wait-for-page-load-2",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 3360,
      "position_y": 580,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "sleep-2",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 3720,
      "position_y": 580,
      "config": {
        "duration": 2
      }
    },
    {
      "block_id": "wait-for-element-2",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 4080,
      "position_y": 580,
      "config": {
        "selector": "article:has(a[href*=\"/stellenangebote--\"]), li:has(a[href*=\"/stellenangebote--\"]), div[data-testid*=\"job-card\" i]:has(a[href*=\"/stellenangebote--\"]), div[data-at*=\"job-item\" i]:has(a[href*=\"/stellenangebote--\"])",
        "timeout": 30,
        "visible": true
      }
    }
  ],
  "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": "inject-javascript-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-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": "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": "loop-continue-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": "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-entry",
      "element_type": "group",
      "title": "Entry & Setup",
      "color": "#4589ff",
      "position_x": 48,
      "position_y": 156,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "set-window-size-1"
        ]
      }
    },
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 408,
      "position_y": 156,
      "width": 3920,
      "height": 616,
      "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": 1128,
      "position_y": 156,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 2208,
      "position_y": 156,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 2568,
      "position_y": 156,
      "width": 680,
      "height": 616,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "element-exists-1",
          "loop-continue-1",
          "click-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes Stepstone Germany job listings from multiple listing/search URLs, extracting job title, job URL, company, location, home-office indicator, description, publishing time, and logo/image URL. Uses click-based Next/Weiter pagination on each listing URL and appends all pages into one CSV. Best-effort template because the supplied sample job-detail URL currently returns 404 and Stepstone uses dynamic generated classes.",
      "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 labels = ['alle akzeptieren','akzeptieren','zustimmen','accept all','accept']; const nodes = A...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1400,
      "position_y": 240,
      "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": "Structured export with JS columns (job_titel, titel_url, name_des_unternehmens, standort, home_moeglich). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2480,
      "position_y": 240,
      "width": 340,
      "height": 136,
      "z_index": 22,
      "data": {
        "block_id": "structured-export-1"
      }
    },
    {
      "id": "note-block-element-exists-1",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `a[rel=\"next\"]:not([aria-disabled=\"true\"]):not(.disabled), a[aria-label*=\"Nächste\" i]:not([aria-disabled=\"true\"]):not(.di`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 2840,
      "position_y": 240,
      "width": 340,
      "height": 170,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-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": 2840,
      "position_y": 560,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-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": 3200,
      "position_y": 560,
      "width": 316,
      "height": 106,
      "z_index": 22,
      "data": {
        "block_id": "click-1"
      }
    }
  ]
}