{
  "version": "1.0.0",
  "exported_at": "2026-06-02T19:30:00.000Z",
  "project": {
    "name": "Freelancermap Job Scraper Listing",
    "description": "Scrapes Freelancermap project listing data from provider pages, including title, provider, created date, description, keywords, project URL, and location. Pagination is handled with a finite known URL list: emagine page 1, emagine page 2 from link[rel=\"next\"], mindsquare, and akBit. Empty provider pages are skipped. Best-effort cookie handling is included; CAPTCHA or login prompts may require manual intervention.",
    "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.freelancermap.de/projektanbieter/emagine+GmbH-561447.html",
          "https://www.freelancermap.de/projektanbieter/emagine+GmbH-561447.html?pagenr=2",
          "https://www.freelancermap.de/projektanbieter/mindsquare+AG-571958.html",
          "https://www.freelancermap.de/projektanbieter/akBit+Business+%26+IT+Services+GbR-386987.html"
        ],
        "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": "#onetrust-accept-btn-handler"
      }
    },
    {
      "block_id": "click-1",
      "block_type": "process",
      "title": "Click",
      "description": "Click on element",
      "position_x": 1128,
      "position_y": 520,
      "config": {
        "selector": "#onetrust-accept-btn-handler",
        "timeout": 8
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1464,
      "position_y": 520,
      "config": {
        "duration": 2
      }
    },
    {
      "block_id": "element-exists-2",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 1800,
      "position_y": 520,
      "config": {
        "selector": "a[data-testid=\"title\"][data-id=\"project-card-title\"]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 2136,
      "position_y": 520,
      "config": {
        "rowSelector": "a[data-testid=\"title\"][data-id=\"project-card-title\"]",
        "fileName": "freelancermap-job-scraper-listing.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "titel",
            "selector": "",
            "attribute": "text"
          },
          {
            "name": "projektanbieter",
            "selector": "(() => { const href = new URL(ROW.getAttribute('href'), location.href).href; const scripts = Array.from(document.querySelectorAll('script.js-react-on-rails-component[data-component-name=\"ProjectSearch\"]')); for (const s of scripts) { try { const d = JSON.parse(s.textContent); const arr = [...(d.initialResults || []), ...(((d.initialState || {}).result || {}).projects || [])]; const p = arr.find(x => x && ((x.slug && href.includes('/projekt/' + x.slug)) || (x.id && href.includes(String(x.id))))); if (p) return p.company || (p.poster && p.poster.company) || ''; } catch (e) {} } return ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "eingetragen_am",
            "selector": "(() => { const href = new URL(ROW.getAttribute('href'), location.href).href; const scripts = Array.from(document.querySelectorAll('script.js-react-on-rails-component[data-component-name=\"ProjectSearch\"]')); for (const s of scripts) { try { const d = JSON.parse(s.textContent); const arr = [...(d.initialResults || []), ...(((d.initialState || {}).result || {}).projects || [])]; const p = arr.find(x => x && ((x.slug && href.includes('/projekt/' + x.slug)) || (x.id && href.includes(String(x.id))))); if (p && p.created) return new Date(p.created).toLocaleDateString('de-DE'); } catch (e) {} } return ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "beschreibung",
            "selector": "(() => { const href = new URL(ROW.getAttribute('href'), location.href).href; const scripts = Array.from(document.querySelectorAll('script.js-react-on-rails-component[data-component-name=\"ProjectSearch\"]')); for (const s of scripts) { try { const d = JSON.parse(s.textContent); const arr = [...(d.initialResults || []), ...(((d.initialState || {}).result || {}).projects || [])]; const p = arr.find(x => x && ((x.slug && href.includes('/projekt/' + x.slug)) || (x.id && href.includes(String(x.id))))); if (p && p.description) { const div = document.createElement('div'); div.innerHTML = p.description; return div.textContent.replace(/\\s+/g, ' ').trim(); } } catch (e) {} } return ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "schlagwort1",
            "selector": "(() => { let card = ROW; for (let i = 0; i < 8 && card; i++) { const titleCount = card.querySelectorAll('a[data-testid=\"title\"][data-id=\"project-card-title\"]').length; if (titleCount === 1 && card.querySelector('[data-testid=\"city\"]')) break; card = card.parentElement; } const badges = card ? Array.from(card.querySelectorAll('a.badge, .badge')).map(e => e.textContent.replace(/\\s+/g, ' ').trim()).filter(Boolean) : []; if (badges.length) return badges.slice(0, 3).join(', '); const href = new URL(ROW.getAttribute('href'), location.href).href; const scripts = Array.from(document.querySelectorAll('script.js-react-on-rails-component[data-component-name=\"ProjectSearch\"]')); for (const s of scripts) { try { const d = JSON.parse(s.textContent); const arr = [...(d.initialResults || []), ...(((d.initialState || {}).result || {}).projects || [])]; const p = arr.find(x => x && ((x.slug && href.includes('/projekt/' + x.slug)) || (x.id && href.includes(String(x.id))))); const kws = p && p.matching ? [...(p.matching.keywordsLocalized || []), ...(p.matching.titleLocalized || []), ...(p.matching.textLocalized || [])] : []; if (kws.length) return kws.slice(0, 3).join(', '); } catch (e) {} } return ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "schlagwort2",
            "selector": "(() => { let card = ROW; for (let i = 0; i < 8 && card; i++) { const titleCount = card.querySelectorAll('a[data-testid=\"title\"][data-id=\"project-card-title\"]').length; if (titleCount === 1 && card.querySelector('[data-testid=\"city\"]')) break; card = card.parentElement; } const badges = card ? Array.from(card.querySelectorAll('a.badge, .badge')).map(e => e.textContent.replace(/\\s+/g, ' ').trim()).filter(Boolean) : []; if (badges.length > 3) return badges.slice(3, 10).join(', '); const href = new URL(ROW.getAttribute('href'), location.href).href; const scripts = Array.from(document.querySelectorAll('script.js-react-on-rails-component[data-component-name=\"ProjectSearch\"]')); for (const s of scripts) { try { const d = JSON.parse(s.textContent); const arr = [...(d.initialResults || []), ...(((d.initialState || {}).result || {}).projects || [])]; const p = arr.find(x => x && ((x.slug && href.includes('/projekt/' + x.slug)) || (x.id && href.includes(String(x.id))))); const kws = p && p.matching ? [...(p.matching.keywordsLocalized || []), ...(p.matching.titleLocalized || []), ...(p.matching.textLocalized || [])] : []; if (kws.length > 3) return kws.slice(3, 10).join(', '); } catch (e) {} } return ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "projekt_url",
            "selector": "new URL(ROW.getAttribute('href'), location.href).href",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "standort",
            "selector": "(() => { const href = new URL(ROW.getAttribute('href'), location.href).href; const scripts = Array.from(document.querySelectorAll('script.js-react-on-rails-component[data-component-name=\"ProjectSearch\"]')); for (const s of scripts) { try { const d = JSON.parse(s.textContent); const arr = [...(d.initialResults || []), ...(((d.initialState || {}).result || {}).projects || [])]; const p = arr.find(x => x && ((x.slug && href.includes('/projekt/' + x.slug)) || (x.id && href.includes(String(x.id))))); if (p) { const remote = p.projectContractType && p.projectContractType.remoteInPercent; if (remote === 100) return 'Remote'; return [p.city || '', p.country && p.country.name ? p.country.name : ''].filter(Boolean).join(', '); } } catch (e) {} } let card = ROW; for (let i = 0; i < 8 && card; i++) { if (card.querySelector('[data-testid=\"city\"]')) break; card = card.parentElement; } return card && card.querySelector('[data-testid=\"city\"]') ? card.querySelector('[data-testid=\"city\"]').textContent.replace(/\\s+/g, ' ').trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "projektanbieter_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": 2472,
      "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-1",
      "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": "element-exists-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-2",
      "from_connector_id": "true",
      "to_block_id": "structured-export-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": "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": 116,
      "width": 1664,
      "height": 596,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-pagination",
      "element_type": "group",
      "title": "Pagination Loop",
      "color": "#ff832b",
      "position_x": 720,
      "position_y": 116,
      "width": 2000,
      "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": 2064,
      "position_y": 416,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes Freelancermap project listing data from provider pages, including title, provider, created date, description, keywords, project URL, and location. Pagination is handled with a finite known URL list: emagine page 1, emagine page 2 from link[rel=\"next\"], mindsquare, and akBit. Empty provider pages are skipped. Best-effort cookie handling is included; CAPTCHA or login prompts may require manual intervention.",
      "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 4 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 320,
      "position_y": 200,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "id": "note-block-element-exists-1",
      "element_type": "note",
      "title": "Note: Element Exists",
      "content": "Condition block: checks `#onetrust-accept-btn-handler`. 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": 139,
      "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[data-testid=\"title\"][data-id=\"project-card-title\"]`. True / False branches control which path runs next. Keep enough space between branches so both connector lines are visible.",
      "color": "#ee5396",
      "position_x": 2000,
      "position_y": 500,
      "width": 340,
      "height": 147,
      "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 (projektanbieter, eingetragen_am, beschreibung, schlagwort1, schlagwort2). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2336,
      "position_y": 500,
      "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": 2672,
      "position_y": 500,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}