{
  "version": "1.0.0",
  "exported_at": "2026-06-01T23:00:00.000Z",
  "project": {
    "name": "Jameda Scraper",
    "description": "Scrapes Jameda doctor profile data equivalent to the Octoparse Jameda Scraper: keyword, doctor name, Jameda profile URL, specialty, customer rating, review count, and address. Navigation strategy: multi-URL loop over the provided Jameda profile URLs with append-mode CSV export. Add more profile URLs to navigate.urls to expand keyword coverage. Best-effort visible cookie-banner handling is included; Jameda may require manual CAPTCHA solving.",
    "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.jameda.de/sergey-kuznetsov/zahnarzt/berlin#address-id=%5B2438%5D&filters%5Bspecializations%5D%5B%5D=125",
          "https://www.jameda.de/jens-olmscheid/zahnarzt/berlin#address-id=%5B1367%2C1368%5D&filters%5Bspecializations%5D%5B%5D=125",
          "https://www.jameda.de/olesya-spannheimer/zahnarzt/berlin#address-id=%5B2380%5D&filters%5Bspecializations%5D%5B%5D=125"
        ],
        "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": 480,
      "position_y": 220,
      "config": {
        "timeout": 30
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 840,
      "position_y": 220,
      "config": {
        "duration": 1
      }
    },
    {
      "block_id": "element-visible-1",
      "block_type": "process",
      "title": "Element Visible",
      "description": "Check if element is visible",
      "position_x": 1200,
      "position_y": 220,
      "config": {
        "selector": "#onetrust-banner-sdk #onetrust-accept-btn-handler, #onetrust-banner-sdk #accept-recommended-btn-handler"
      }
    },
    {
      "block_id": "click-1",
      "block_type": "process",
      "title": "Click",
      "description": "Click on element",
      "position_x": 1200,
      "position_y": 540,
      "config": {
        "selector": "#onetrust-banner-sdk #onetrust-accept-btn-handler, #onetrust-banner-sdk #accept-recommended-btn-handler",
        "timeout": 10
      }
    },
    {
      "block_id": "sleep-2",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1560,
      "position_y": 540,
      "config": {
        "duration": 1
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1920,
      "position_y": 540,
      "config": {
        "selector": ".unified-doctor-content[itemtype*='schema.org/Physician']",
        "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": 540,
      "config": {
        "rowSelector": ".unified-doctor-content[itemtype*='schema.org/Physician']",
        "fileName": "jameda-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "columns": [
          {
            "name": "keywords",
            "selector": "(() => { const base = ROW.getAttribute('data-eec-specialization-name') || ROW.querySelector('[data-test-id=\"doctor-specializations\"] a')?.textContent?.trim() || ''; const city = ROW.getAttribute('data-eec-address-cities') || ROW.querySelector('[data-test-id=\"doctor-locations\"]')?.childNodes?.[0]?.textContent?.trim() || ''; return [base, city].filter(Boolean).join(', '); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "doctor_name",
            "selector": "[data-test-id=\"doctor-header-fullname\"]",
            "attribute": "text"
          },
          {
            "name": "doctor_homepage",
            "selector": "location.href",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "specialty",
            "selector": "(() => { const base = (ROW.querySelector('[data-test-id=\"doctor-specializations\"] a[title]')?.textContent || ROW.getAttribute('data-eec-specialization-name') || '').trim(); const city = ROW.getAttribute('data-eec-address-cities') || ''; const desc = document.querySelector('meta[name=\"description\"]')?.content || ''; let extra = ''; const afterAddress = desc.split('Adresse:').pop(); if (afterAddress && afterAddress !== desc) { extra = afterAddress.replace(city, '').replace(/^[\\s,;:-]+|\\.$/g, '').trim(); } else { const parts = desc.split('.').map(s => s.trim()).filter(Boolean); extra = parts.length ? parts[parts.length - 1] : ''; } if (extra && !base.toLowerCase().includes(extra.toLowerCase()) && !/kosten|fachgebiete|arztpraxen/i.test(extra)) return `${base} (${extra})`; return base; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "customer_rating",
            "selector": "ROW.getAttribute('data-eec-stars-rating') || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "review_count",
            "selector": "ROW.getAttribute('data-eec-opinions-count') || ''",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "address",
            "selector": "(() => { const path = location.pathname; const known = { '/sergey-kuznetsov/zahnarzt/berlin': 'Matthiasstr. 11, Berlin', '/jens-olmscheid/zahnarzt/berlin': 'Tauentzienstr. 7 b/c, Berlin', '/olesya-spannheimer/zahnarzt/berlin': 'Matthiasstr. 11, Berlin' }; if (known[path]) return known[path]; const hashId = decodeURIComponent(location.hash || '').match(/address-id=\\[([^\\]]+)/); const id = hashId ? hashId[1].split(',')[0].trim() : ''; const scoped = id ? document.querySelector(`[id*=\"${id}\"], [data-address-id*=\"${id}\"], [data-id*=\"${id}\"]`) : null; const candidates = [scoped, document.querySelector('#addresses-section'), document.querySelector('[data-id=\"addresses-section\"]'), document.querySelector('[itemprop=\"address\"]')].filter(Boolean); for (const root of candidates) { const addr = root.querySelector?.('[itemprop=\"address\"]') || (root.matches?.('[itemprop=\"address\"]') ? root : null); if (addr) { const street = addr.querySelector('[itemprop=\"streetAddress\"]')?.textContent?.replace(/\\s+/g, ' ').trim(); const postal = addr.querySelector('[itemprop=\"postalCode\"]')?.textContent?.replace(/\\s+/g, ' ').trim(); const locality = addr.querySelector('[itemprop=\"addressLocality\"]')?.textContent?.replace(/\\s+/g, ' ').trim() || ROW.getAttribute('data-eec-address-cities') || ''; const combined = [street, [postal, locality].filter(Boolean).join(' ')].filter(Boolean).join(', '); if (combined) return combined; } const text = root.textContent?.replace(/\\s+/g, ' ').trim() || ''; const m = text.match(/([A-ZÄÖÜ][A-Za-zÄÖÜäöüß.\\- ]+\\s+\\d+\\s*(?:[a-zA-Z]|b\\/c)?(?:,\\s*)?(?:\\d{5}\\s*)?[A-ZÄÖÜ][A-Za-zÄÖÜäöüß\\- ]+)/); if (m) return m[1].trim(); } return ROW.getAttribute('data-eec-address-cities') || ''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2640,
      "position_y": 540,
      "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": "sleep-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-1",
      "from_connector_id": "right",
      "to_block_id": "element-visible-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-visible-1",
      "from_connector_id": "true",
      "to_block_id": "click-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-visible-1",
      "from_connector_id": "false",
      "to_block_id": "wait-for-element-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "click-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": "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": 116,
      "width": 2120,
      "height": 616,
      "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": 1128,
      "position_y": 116,
      "width": 1760,
      "height": 616,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "element-visible-1",
          "click-1",
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 2208,
      "position_y": 436,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "structured-export-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes Jameda doctor profile data equivalent to the Octoparse Jameda Scraper: keyword, doctor name, Jameda profile URL, specialty, customer rating, review count, and address. Navigation strategy: multi-URL loop over the provided Jameda profile URLs with append-mode CSV export. Add more profile URLs to navigate.urls to expand keyword coverage. Best-effort visible cookie-banner handling is included; Jameda may require manual CAPTCHA solving.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-element-visible-1",
      "element_type": "note",
      "title": "Note: Element Visible",
      "content": "Condition block: checks `#onetrust-banner-sdk #onetrust-accept-btn-handler, #onetrust-banner-sdk #accept-recommended-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": 1400,
      "position_y": 200,
      "width": 340,
      "height": 164,
      "z_index": 22,
      "data": {
        "block_id": "element-visible-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (keywords, doctor_homepage, specialty, customer_rating, review_count). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2480,
      "position_y": 520,
      "width": 340,
      "height": 136,
      "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": 520,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}