{
  "version": "1.0.0",
  "exported_at": "2026-06-02T17:30:00.000Z",
  "project": {
    "name": "Jobliftde Job Scraper",
    "description": "Scrapes Joblift.de job listing/detail URLs from a list of input URLs, extracting keyword, location/ZIP, contractor/company, job title, district/location, distance, labels, and job URL. Navigation uses a multi-URL loop with append-mode CSV output so all supplied listing URLs are processed. A JavaScript normalization step parses Joblift card text into data attributes before export to avoid exporting the entire card as the job title. Best-effort limitations: Joblift may show expired jobs, no-results pages, cookie prompts, proxy/CAPTCHA requirements, or third-party redirects.",
    "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": 260,
      "config": {
        "urls": [
          "https://joblift.de/jobs-in-10115-f%C3%BCr-Arzt/details/2282496e-b2a8-4973-989f-08219f87f0f9?first-job-redirect=true",
          "https://joblift.de/jobs-in-Brandenburg-f%C3%BCr-manager/details/dedb6bca-db60-4055-8137-85220b3973a1?fjr=true",
          "https://joblift.de/jobs-in-Brandenburg-f%C3%BCr-Arzt/details/db36e45f-6413-4bcb-b06a-c7211a5a1f64?fjr=true"
        ],
        "color": "bg-[#4589ff]",
        "tags": [
          "joblift",
          "multi-url",
          "jobs"
        ]
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 480,
      "position_y": 260,
      "config": {
        "timeout": 40
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 840,
      "position_y": 260,
      "config": {
        "jsCode": "(() => { const labels = ['OK','Ok','Accept','Accept all','Akzeptieren','Alle akzeptieren','Zustimmen','Einverstanden']; const buttons = Array.from(document.querySelectorAll('button,[role=\"button\"],input[type=\"button\"],input[type=\"submit\"]')); const btn = buttons.find(el => labels.includes((el.innerText || el.value || '').trim())); if (btn) btn.click(); window.scrollTo(0, Math.min(document.body.scrollHeight, 2400)); })();",
        "waitForCompletion": true,
        "timeout": 10
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1200,
      "position_y": 260,
      "config": {
        "duration": 3
      }
    },
    {
      "block_id": "inject-javascript-2",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 1560,
      "position_y": 260,
      "config": {
        "jsCode": "(() => { const anchors = Array.from(document.querySelectorAll('a[href*=\"/joblink?to=\"], a[href^=\"/details/\"], a[href*=\"stellenangebote--\"]:not([href*=\"#location\"])')); const junk = /^(New|Neu|Sponsored|Anzeige|Schnelle Bewerbung|Speichern|Ich bin interessiert|Login|Job posten|Job finden|Find jobs!)$/i; const locRe = /(\\b\\d+\\s*km\\b|<\\s*\\d+\\s*km|^\\d{5}\\s|,\\s*[^,]+\\s*\\d+\\s*km)/i; const distRe = /<\\s*\\d+\\s*km|\\b\\d+\\s*km\\b/i; const titleRe = /\\(m\\/w\\/d\\)|\\(w\\/m\\/d\\)|arzt|ärzt|manager|pflege|fachkraft|engineer|entwickler|consultant|specialist|assistant|assistenz|leiter|chirurgie|medizin|techniker|berater|analyst|developer|nurse/i; for (const a of anchors) { const text = (a.innerText || a.textContent || '').replace(/\\r/g, '').trim(); let lines = text.split(/\\n+/).map(s => s.replace(/\\s+/g, ' ').trim()).filter(Boolean).filter(t => !junk.test(t)); lines = Array.from(new Set(lines)); const locIdx = lines.findIndex(t => locRe.test(t)); const locLine = locIdx >= 0 ? lines[locIdx] : ''; const distance = (locLine.match(distRe) || text.match(distRe) || [''])[0]; const district = locLine.replace(/\\s*<?\\s*\\d+\\s*km\\b.*$/i, '').trim(); let company = ''; let title = ''; if (lines.length === 1) { title = lines[0]; } else { company = lines[0] || ''; const beforeLoc = locIdx > 0 ? lines.slice(0, locIdx) : lines.slice(0, Math.min(lines.length, 5)); const titleCandidates = beforeLoc.filter((t, i) => i !== 0 && !junk.test(t)); title = titleCandidates.find(t => titleRe.test(t)) || titleCandidates[titleCandidates.length - 1] || lines.find(t => titleRe.test(t)) || ''; if (!title && lines[1]) title = lines[1]; } if (!company && title && lines[0] && lines[0] !== title) company = lines[0]; const labelStart = locIdx >= 0 ? locIdx + 1 : Math.max(lines.indexOf(title) + 1, 1); const labels = lines.slice(labelStart).filter(t => !junk.test(t) && t !== company && t !== title && t !== district && !distRe.test(t) && t.length <= 100); a.setAttribute('data-us-company', company || ''); a.setAttribute('data-us-title', title || ''); a.setAttribute('data-us-district', district || ''); a.setAttribute('data-us-distance', distance || ''); for (let i = 0; i < 7; i++) a.setAttribute('data-us-label' + (i + 1), labels[i] || ''); } })();",
        "waitForCompletion": true,
        "timeout": 10
      }
    },
    {
      "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": "body",
        "timeout": 35,
        "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": "a[href*=\"/joblink?to=\"], a[href^=\"/details/\"], a[href*=\"stellenangebote--\"]:not([href*=\"#location\"])",
        "fileName": "jobliftde_job_scraper_clean.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "input_url",
            "selector": "window.location.href",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "schluesselwort",
            "selector": "(() => { const fromInput = document.querySelector('[data-testid=\"titleAutosuggest\"]')?.value || ''; const pathText = decodeURIComponent(new URLSearchParams(location.search).get('backUrl') || location.pathname || ''); const fromPath = pathText.match(/f(?:ü|u|%C3%BC)r-([^/?#]+)/i)?.[1] || ''; return (fromInput || fromPath).replace(/-/g,' ').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "standort_oder_plz",
            "selector": "(() => { const fromInput = document.querySelector('[data-testid=\"locationAutosuggest\"]')?.value || ''; const pathText = decodeURIComponent(new URLSearchParams(location.search).get('backUrl') || location.pathname || ''); const fromPath = pathText.match(/jobs-in-([^/]+?)-f/i)?.[1] || ''; return (fromInput || fromPath).replace(/-/g,' ').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "unternehmer",
            "selector": "",
            "attribute": "data-us-company"
          },
          {
            "name": "jobtitel",
            "selector": "",
            "attribute": "data-us-title"
          },
          {
            "name": "bezirk",
            "selector": "",
            "attribute": "data-us-district"
          },
          {
            "name": "umkreis_vom_bezirk",
            "selector": "",
            "attribute": "data-us-distance"
          },
          {
            "name": "etikett1",
            "selector": "",
            "attribute": "data-us-label1"
          },
          {
            "name": "etikett2",
            "selector": "",
            "attribute": "data-us-label2"
          },
          {
            "name": "etikett3",
            "selector": "",
            "attribute": "data-us-label3"
          },
          {
            "name": "etikett4",
            "selector": "",
            "attribute": "data-us-label4"
          },
          {
            "name": "etikett5",
            "selector": "",
            "attribute": "data-us-label5"
          },
          {
            "name": "etikett6",
            "selector": "",
            "attribute": "data-us-label6"
          },
          {
            "name": "etikett7",
            "selector": "",
            "attribute": "data-us-label7"
          },
          {
            "name": "job_url",
            "selector": "",
            "attribute": "href"
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2640,
      "position_y": 260,
      "config": {}
    }
  ],
  "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": "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": "inject-javascript-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-2",
      "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": "loop-continue-1",
      "to_connector_id": "left"
    }
  ],
  "canvas_elements": [
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 48,
      "position_y": 156,
      "width": 2120,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1",
          "wait-for-element-1"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 768,
      "position_y": 156,
      "width": 1040,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1",
          "inject-javascript-2"
        ]
      }
    },
    {
      "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": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes Joblift.de job listing/detail URLs from a list of input URLs, extracting keyword, location/ZIP, contractor/company, job title, district/location, distance, labels, and job URL. Navigation uses a multi-URL loop with append-mode CSV output so all supplied listing URLs are processed. A JavaScript normalization step parses Joblift card text into data attributes before export to avoid exporting the entire card as the job title. Best-effort limitations: Joblift may show expired jobs, no-results pages, cookie prompts, proxy/CAPTCHA requirements, or third-party redirects.",
      "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 = ['OK','Ok','Accept','Accept all','Akzeptieren','Alle akzeptieren','Zustimmen...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1040,
      "position_y": 240,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-1"
      }
    },
    {
      "id": "note-block-inject-javascript-2",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `(() => { const anchors = Array.from(document.querySelectorAll('a[href*=\"/joblink?to=\"], a[href^=\"/de...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1760,
      "position_y": 240,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-2"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (input_url, schluesselwort, standort_oder_plz). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2480,
      "position_y": 240,
      "width": 340,
      "height": 128,
      "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": 2840,
      "position_y": 240,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}