{
  "version": "1.0.0",
  "exported_at": "2026-06-02T00:00:00.000Z",
  "project": {
    "name": "Willhaben Job Scraper Listing",
    "description": "Scrapes Willhaben.at job listing/search result pages for Eingabe_URL, Titel, Arbeitgeber, Andere_Info, and absolute Job_URL. Pagination uses a finite known-URL loop over page=1..10 and includes a row-exists guard so empty/nonexistent pages are skipped instead of timing out. The row selector uses CSS only, because structured-export uses browser querySelectorAll; it targets full job-card links with descendants to avoid title-only duplicate links. Results append to willhaben_job_scraper_listing.csv. Replace or extend the Navigate urls[] list with desired Willhaben listing URLs/pages. Willhaben may require proxies or show consent/anti-bot interstitials.",
    "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": {
        "urls": [
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=1",
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=2",
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=3",
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=4",
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=5",
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=6",
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=7",
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=8",
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=9",
          "https://www.willhaben.at/jobs/suche?keyword=Tischler&location=Wien&region=14486&page=10"
        ],
        "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": 456,
      "position_y": 220,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "element-exists-1",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 792,
      "position_y": 220,
      "config": {
        "selector": "#didomi-notice-agree-button, button[id*=\"accept\" i], button[aria-label*=\"Accept\" i], button[aria-label*=\"Akzeptieren\" i]"
      }
    },
    {
      "block_id": "click-1",
      "block_type": "process",
      "title": "Click",
      "description": "Click on element",
      "position_x": 1128,
      "position_y": 520,
      "config": {
        "selector": "#didomi-notice-agree-button, button[id*=\"accept\" i], button[aria-label*=\"Accept\" i], button[aria-label*=\"Akzeptieren\" i]",
        "timeout": 10
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1464,
      "position_y": 520,
      "config": {
        "duration": 1
      }
    },
    {
      "block_id": "sleep-2",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1800,
      "position_y": 520,
      "config": {
        "duration": 2
      }
    },
    {
      "block_id": "element-exists-2",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 2136,
      "position_y": 520,
      "config": {
        "selector": "a[href*=\"/jobs/job/\"]:has(div):has(span)"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 2472,
      "position_y": 520,
      "config": {
        "selector": "a[href*=\"/jobs/job/\"]:has(div):has(span)",
        "timeout": 20,
        "visible": true
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 2808,
      "position_y": 520,
      "config": {
        "rowSelector": "a[href*=\"/jobs/job/\"]:has(div):has(span)",
        "fileName": "willhaben_job_scraper_listing.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "eingabe_url",
            "selector": "(() => { const u = new URL(window.location.href); u.searchParams.delete('page'); return u.href; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "titel",
            "selector": "(() => { const lines = ((ROW.innerText || ROW.textContent || '')).split('\\n').map(s => s.trim()).filter(Boolean); const titleEl = ROW.querySelector('h1,h2,h3,[data-testid*=\"title\" i]'); if (titleEl && titleEl.textContent.trim()) return titleEl.textContent.trim(); return lines.find(l => !/\\bJobs$/i.test(l) && !/\\d{1,2}\\.\\d{1,2}\\./.test(l) && !/(Vollzeit|Teilzeit|Geringfügig|Freelance|Praktikum|Wien|Bezirk|Homeoffice|Hybrid|Schicht)/i.test(l)) || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "arbeitgeber",
            "selector": "(() => { const lines = ((ROW.innerText || ROW.textContent || '')).split('\\n').map(s => s.trim()).filter(Boolean); const companyEl = ROW.querySelector('[data-testid*=\"company\" i], [data-testid*=\"employer\" i], [data-testid*=\"subtitle\" i]'); if (companyEl && companyEl.textContent.trim()) return companyEl.textContent.trim(); return lines.find(l => /\\bJobs$/i.test(l)) || lines.find(l => /(GmbH|AG|KG|OG|e\\.U\\.|Personal|Austria|Service|Bau|Jobs)/i.test(l) && !/\\d{1,2}\\.\\d{1,2}\\./.test(l)) || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "andere_info",
            "selector": "(() => { const lines = ((ROW.innerText || ROW.textContent || '')).split('\\n').map(s => s.trim()).filter(Boolean); return lines.find(l => /\\d{1,2}\\.\\d{1,2}\\.\\s*\\|/.test(l)) || lines.find(l => /\\|\\s*(Vollzeit|Teilzeit|Geringfügig|Freelance|Praktikum)/i.test(l)) || lines.find(l => /(Vollzeit|Teilzeit|Geringfügig|Freelance|Praktikum|Wien|Bezirk|Homeoffice|Hybrid|Schicht)/i.test(l)) || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "job_url",
            "selector": "(() => new URL(ROW.getAttribute('href') || '', window.location.origin).href)()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 3144,
      "position_y": 520,
      "config": {}
    },
    {
      "block_id": "end-1",
      "block_type": "output",
      "title": "End",
      "description": "Terminate execution flow",
      "position_x": 3480,
      "position_y": 520,
      "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": "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": "sleep-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "click-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": "sleep-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-2",
      "from_connector_id": "right",
      "to_block_id": "element-exists-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-2",
      "from_connector_id": "true",
      "to_block_id": "wait-for-element-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-2",
      "from_connector_id": "false",
      "to_block_id": "loop-continue-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"
    },
    {
      "from_block_id": "loop-continue-1",
      "from_connector_id": "right",
      "to_block_id": "end-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": 2672,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1",
          "sleep-2",
          "wait-for-element-1"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 720,
      "position_y": 116,
      "width": 2672,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "element-exists-1",
          "click-1",
          "element-exists-2",
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 2736,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "group-control",
      "element_type": "group",
      "title": "Control Flow",
      "color": "#8d8d8d",
      "position_x": 3408,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "end-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes Willhaben.at job listing/search result pages for Eingabe_URL, Titel, Arbeitgeber, Andere_Info, and absolute Job_URL. Pagination uses a finite known-URL loop over page=1..10 and includes a row-exists guard so empty/nonexistent pages are skipped instead of timing out. The row selector uses CSS only, because structured-export uses browser querySelectorAll; it targets full job-card links with descendants to avoid title-only duplicate links. Results append to willhaben_job_scraper_listing.csv. Replace or extend the Navigate urls[] list with desired Willhaben listing URLs/pages. Willhaben may require proxies or show consent/anti-bot interstitials.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-element-exists-1",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `#didomi-notice-agree-button, button[id*=\"accept\" i], button[aria-label*=\"Accept\" i], button[aria-label*=\"Akzeptieren\" i]`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 992,
      "position_y": 200,
      "width": 340,
      "height": 170,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-1"
      }
    },
    {
      "id": "note-block-element-exists-2",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `a[href*=\"/jobs/job/\"]:has(div):has(span)`. 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": 500,
      "width": 340,
      "height": 143,
      "z_index": 22,
      "data": {
        "block_id": "element-exists-2"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (eingabe_url, titel, arbeitgeber, andere_info, job_url). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 3008,
      "position_y": 500,
      "width": 340,
      "height": 131,
      "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": 3344,
      "position_y": 500,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}