{
  "version": "1.0.0",
  "exported_at": "2026-06-02T19:35:00.000Z",
  "project": {
    "name": "BundesTelefonbuch Leads Scraper",
    "description": "Scrapes BundesTelefonbuch lead listings for title, address, telephone number, fax number, homepage, and email. Uses a known-URL pagination loop for the provided listing URLs: techniker in Hamburg pages 1-7 and arbeiter in Berlin pages 1-4. Results are appended into one CSV. Page-load waiting is intentionally avoided because BundesTelefonbuch ad/third-party resources can keep readyState from completing; instead the template waits for result-card DOM elements. A delay between pages is included to reduce 429/rate-limit failures. The bare /suche URL returned 429 during analysis and is not included as a runnable listing page.",
    "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.bundes-telefonbuch.de/suche?what=techniker&where=hamburg&whereLat=&whereLng=",
          "https://www.bundes-telefonbuch.de/suche?what=techniker&where=hamburg&whereLat=&whereLng=&page=2",
          "https://www.bundes-telefonbuch.de/suche?what=techniker&where=hamburg&whereLat=&whereLng=&page=3",
          "https://www.bundes-telefonbuch.de/suche?what=techniker&where=hamburg&whereLat=&whereLng=&page=4",
          "https://www.bundes-telefonbuch.de/suche?what=techniker&where=hamburg&whereLat=&whereLng=&page=5",
          "https://www.bundes-telefonbuch.de/suche?what=techniker&where=hamburg&whereLat=&whereLng=&page=6",
          "https://www.bundes-telefonbuch.de/suche?what=techniker&where=hamburg&whereLat=&whereLng=&page=7",
          "https://www.bundes-telefonbuch.de/suche?what=arbeiter&where=berlin&whereLat=&whereLng=",
          "https://www.bundes-telefonbuch.de/suche?what=arbeiter&where=berlin&whereLat=&whereLng=&page=2",
          "https://www.bundes-telefonbuch.de/suche?what=arbeiter&where=berlin&whereLat=&whereLng=&page=3",
          "https://www.bundes-telefonbuch.de/suche?what=arbeiter&where=berlin&whereLat=&whereLng=&page=4"
        ],
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 480,
      "position_y": 220,
      "config": {
        "duration": 3
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 840,
      "position_y": 220,
      "config": {
        "selector": "#scrollingcontent .companyBox",
        "timeout": 60,
        "visible": false
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1200,
      "position_y": 220,
      "config": {
        "rowSelector": "#scrollingcontent .companyBox",
        "columns": [
          {
            "name": "titel",
            "selector": "(ROW.querySelector('.panel-heading h2.panel-title a')?.textContent || '').replace(/\\s+/g, ' ').trim()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "adresse",
            "selector": "(ROW.querySelector('.detail-address')?.innerText || '').replace(/\\s+/g, ' ').trim()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "telefonnummer",
            "selector": "(ROW.querySelector('.detail-phone')?.innerText || '').replace(/\\s+/g, ' ').trim()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "faxnummer",
            "selector": "(ROW.querySelector('.detail-fax')?.innerText || '').replace(/\\s+/g, ' ').trim()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "homepage",
            "selector": "(ROW.querySelector('a.detail-homepage')?.textContent || '').replace(/\\s+/g, ' ').trim()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "email",
            "selector": "(ROW.querySelector('a.detail-email')?.textContent || '').replace(/\\s+/g, ' ').trim()",
            "attribute": "text",
            "isJs": true
          }
        ],
        "fileName": "bundestelefonbuch-leads-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append"
      }
    },
    {
      "block_id": "sleep-2",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1560,
      "position_y": 220,
      "config": {
        "duration": 10
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 1920,
      "position_y": 220,
      "config": {}
    }
  ],
  "connections": [
    {
      "from_block_id": "navigate-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": "sleep-2",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-2",
      "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": 1760,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "sleep-1",
          "wait-for-element-1",
          "sleep-2"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1128,
      "position_y": 116,
      "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": 1848,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes BundesTelefonbuch lead listings for title, address, telephone number, fax number, homepage, and email. Uses a known-URL pagination loop for the provided listing URLs: techniker in Hamburg pages 1-7 and arbeiter in Berlin pages 1-4. Results are appended into one CSV. Page-load waiting is intentionally avoided because BundesTelefonbuch ad/third-party resources can keep readyState from completing; instead the template waits for result-card DOM elements. A delay between pages is included to reduce 429/rate-limit failures. The bare /suche URL returned 429 during analysis and is not included as a runnable listing page.",
      "color": "#f1c21b",
      "position_x": 80,
      "position_y": 20,
      "width": 480,
      "height": 160,
      "z_index": 22,
      "data": {}
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (titel, adresse, telefonnummer, faxnummer, homepage). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 1400,
      "position_y": 200,
      "width": 340,
      "height": 130,
      "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": 2120,
      "position_y": 200,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}