{
  "version": "1.0.0",
  "exported_at": "2026-05-31T00:00:00.000Z",
  "project": {
    "name": "Airbnbfr Hotel Info Scraper",
    "description": "Scrapes Airbnb.fr room detail pages from a URL input list. For each room URL, extracts listing title/type, overall rating, comment count, nightly price when Airbnb visibly renders it, and category ratings for Propreté, Communication, Arrivée, Précision, Emplacement, and Qualité_prix. Navigation strategy: multi-URL loop using navigate.urls[] plus loop-continue, so add more Airbnb room URLs to the Navigate block to scrape multiple listings. The nightly price parser only accepts visible DOM/ARIA text in clear nightly-price context such as par nuit, / nuit, or per night; if Airbnb does not visibly render a price for supplied dates, prix_par_nuit is set to prix_indisponible. Airbnb may block scraping, show CAPTCHA/login prompts, or hide prices depending on dates and availability.",
    "color": "bg-[#ff5a5f]",
    "template_id": "ai-generated"
  },
  "blocks": [
    {
      "block_id": "set-window-size-1",
      "block_type": "process",
      "title": "Set Window Size",
      "description": "Set browser window dimensions",
      "position_x": 120,
      "position_y": 220,
      "config": {
        "width": 1920,
        "height": 1080,
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 456,
      "position_y": 220,
      "config": {
        "urls": [
          "https://www.airbnb.fr/rooms/633966436740723606?adults=1&category_tag=Tag%3A8102&children=0&enable_m3_private_room=true&infants=0&pets=0&photo_id=1407557843&search_mode=flex_destinations_search&check_in=2026-09-12&check_out=2026-09-17&source_impression_id=p3_1714450034_mwb6ur5FhR7653E%2F&previous_page_section_name=1000&federated_search_id=2e82512e-0da5-444c-a901-7c79f21f9559"
        ],
        "color": "bg-[#ff5a5f]",
        "tags": [
          "airbnb",
          "multi-url",
          "hotel-info"
        ]
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 792,
      "position_y": 220,
      "config": {
        "timeout": 45,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1128,
      "position_y": 220,
      "config": {
        "selector": "h1",
        "timeout": 45,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "inject-javascript-1",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript",
      "position_x": 1464,
      "position_y": 220,
      "config": {
        "jsCode": "window.scrollTo(0, Math.floor(document.body.scrollHeight * 0.55)); setTimeout(() => window.scrollTo(0, Math.floor(document.body.scrollHeight * 0.85)), 500); setTimeout(() => window.scrollTo(0, 0), 1000);",
        "waitForCompletion": true,
        "timeout": 10,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1800,
      "position_y": 220,
      "config": {
        "duration": 4,
        "color": "bg-[#a56eff]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 2136,
      "position_y": 220,
      "config": {
        "rowSelector": "body",
        "fileName": "airbnb-fr-hotel-info-scraper.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "type",
            "selector": "(() => { const d = ROW.ownerDocument; return (ROW.querySelector('h1')?.textContent || d.querySelector('meta[property=\\'og:description\\']')?.getAttribute('content') || d.title.replace(/ - Airbnb.*/, '') || '').trim(); })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "ratings",
            "selector": "(() => { const d = ROW.ownerDocument; const t = ROW.innerText || ''; const og = d.querySelector('meta[property=\\'og:title\\']')?.getAttribute('content') || ''; const m = t.match(/Évaluation de\\s*([0-9],[0-9]+)/i) || t.match(/([0-9],[0-9]+)\\s*(?:étoile|sur 5)/i) || og.match(/★\\s*([0-9],[0-9]+)/i); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "commentaires",
            "selector": "(() => { const t = ROW.innerText || ''; const m = t.match(/sur la base de\\s*([0-9\\s]+)\\s+commentaires/i) || t.match(/([0-9\\s]+)\\s+[Cc]ommentaires/i); return m ? m[1].replace(/\\s+/g, '').trim() + ' commentaires' : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "prix_par_nuit",
            "selector": "(() => { const d = ROW.ownerDocument; const norm = s => (s || '').replace(/\\\\u20ac/g, '€').replace(/&nbsp;|\\u00a0/g, ' ').replace(/\\s+/g, ' ').trim(); const isLikelyUi = el => { const r = el.getBoundingClientRect ? el.getBoundingClientRect() : null; const style = d.defaultView.getComputedStyle(el); return (!r || (r.width > 0 && r.height > 0)) && style.display !== 'none' && style.visibility !== 'hidden'; }; const candidates = [norm(ROW.innerText || '')]; for (const el of Array.from(d.querySelectorAll('[aria-label], [data-testid], span, div, button')).slice(0, 3500)) { if (!isLikelyUi(el)) continue; const s = norm((el.getAttribute('aria-label') || '') + ' ' + (el.getAttribute('data-testid') || '') + ' ' + (el.textContent || '')); if (/[€$£]|nuit|night|prix|tarif|price/i.test(s)) candidates.push(s); } const patterns = [/([0-9][0-9\\s.,]*\\s*[€$£]|[€$£]\\s*[0-9][0-9\\s.,]*)\\s*(?:par\\s*)?nuit/i, /([0-9][0-9\\s.,]*\\s*[€$£]|[€$£]\\s*[0-9][0-9\\s.,]*)\\s*\\/\\s*nuit/i, /(?:prix par nuit|tarif par nuit|price per night|nightly price|nightly rate)[^€$£]{0,120}([0-9][0-9\\s.,]*\\s*[€$£]|[€$£]\\s*[0-9][0-9\\s.,]*)/i, /([0-9][0-9\\s.,]*\\s*[€$£]|[€$£]\\s*[0-9][0-9\\s.,]*)[^€$£]{0,90}(?:par nuit|\\/ nuit|per night)/i]; for (const text of candidates) { for (const re of patterns) { const m = text.match(re); if (m) return norm(m[1]); } } return 'prix_indisponible'; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Propreté",
            "selector": "(() => { const t = ROW.innerText || ''; const m = t.match(/Évaluation par étoiles\\s*:?\\s*([0-9],[0-9])\\s+sur\\s+5\\s+dans la catégorie\\s+propreté/i); if (m) return m[1]; const line = (t.split(/\\n+/).find(x => /propreté/i.test(x)) || ''); const m2 = line.match(/([0-9],[0-9])/); return m2 ? m2[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Communication",
            "selector": "(() => { const t = ROW.innerText || ''; const m = t.match(/Évaluation par étoiles\\s*:?\\s*([0-9],[0-9])\\s+sur\\s+5\\s+dans la catégorie\\s+communication/i); if (m) return m[1]; const line = (t.split(/\\n+/).find(x => /communication/i.test(x)) || ''); const m2 = line.match(/([0-9],[0-9])/); return m2 ? m2[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Arrivée",
            "selector": "(() => { const t = ROW.innerText || ''; const m = t.match(/Évaluation par étoiles\\s*:?\\s*([0-9],[0-9])\\s+sur\\s+5\\s+dans la catégorie\\s+arrivée/i); if (m) return m[1]; const line = (t.split(/\\n+/).find(x => /arrivée/i.test(x)) || ''); const m2 = line.match(/([0-9],[0-9])/); return m2 ? m2[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Précision",
            "selector": "(() => { const t = ROW.innerText || ''; const m = t.match(/Évaluation par étoiles\\s*:?\\s*([0-9],[0-9])\\s+sur\\s+5\\s+dans la catégorie\\s+précision/i); if (m) return m[1]; const line = (t.split(/\\n+/).find(x => /précision/i.test(x)) || ''); const m2 = line.match(/([0-9],[0-9])/); return m2 ? m2[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Emplacement",
            "selector": "(() => { const t = ROW.innerText || ''; const m = t.match(/Évaluation par étoiles\\s*:?\\s*([0-9],[0-9])\\s+sur\\s+5\\s+dans la catégorie\\s+emplacement/i); if (m) return m[1]; const line = (t.split(/\\n+/).find(x => /emplacement/i.test(x)) || ''); const m2 = line.match(/([0-9],[0-9])/); return m2 ? m2[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Qualité_prix",
            "selector": "(() => { const t = ROW.innerText || ''; const labels = ['qualité-prix', 'qualité prix', 'rapport qualité-prix']; for (const label of labels) { const re = new RegExp('Évaluation par étoiles\\\\s*:?\\\\s*([0-9],[0-9])\\\\s+sur\\\\s+5\\\\s+dans la catégorie\\\\s+' + label, 'i'); const m = t.match(re); if (m) return m[1]; } const line = (t.split(/\\n+/).find(x => /qualité[- ]?prix|rapport qualité/i.test(x)) || ''); const m2 = line.match(/([0-9],[0-9])/); return m2 ? m2[1] : ''; })()",
            "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": 220,
      "config": {
        "color": "bg-[#8d8d8d]"
      }
    }
  ],
  "connections": [
    {
      "from_block_id": "set-window-size-1",
      "from_connector_id": "right",
      "to_block_id": "navigate-1",
      "to_connector_id": "left"
    },
    {
      "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": "wait-for-element-1",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "wait-for-element-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": "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-entry",
      "element_type": "group",
      "title": "Entry & Setup",
      "color": "#4589ff",
      "position_x": 48,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "set-window-size-1"
        ]
      }
    },
    {
      "id": "group-load",
      "element_type": "group",
      "title": "Page Load",
      "color": "#08bdba",
      "position_x": 384,
      "position_y": 116,
      "width": 1664,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "wait-for-element-1",
          "sleep-1"
        ]
      }
    },
    {
      "id": "group-interaction",
      "element_type": "group",
      "title": "Interaction",
      "color": "#a56eff",
      "position_x": 1392,
      "position_y": 116,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "inject-javascript-1"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 2064,
      "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": 2400,
      "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 Airbnb.fr room detail pages from a URL input list. For each room URL, extracts listing title/type, overall rating, comment count, nightly price when Airbnb visibly renders it, and category ratings for Propreté, Communication, Arrivée, Précision, Emplacement, and Qualité_prix. Navigation strategy: multi-URL loop using navigate.urls[] plus loop-continue, so add more Airbnb room URLs to the Navigate block to scrape multiple listings. The nightly price parser only accepts visible DOM/ARIA text in clear nightly-price context such as par nuit, / nuit, or per night; if Airbnb does not visibly render a price for supplied dates, prix_par_nuit is set to prix_indisponible. Airbnb may block scraping, show CAPTCHA/login prompts, or hide prices depending on dates and availability.",
      "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 1 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 656,
      "position_y": 200,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "id": "note-block-inject-javascript-1",
      "element_type": "note",
      "title": "Note: Inject JavaScript",
      "content": "Runs custom JavaScript in the page: `window.scrollTo(0, Math.floor(document.body.scrollHeight * 0.55)); setTimeout(() => window.scrollTo(...` Verify in browser if results are empty.",
      "color": "#ee5396",
      "position_x": 1664,
      "position_y": 200,
      "width": 340,
      "height": 140,
      "z_index": 22,
      "data": {
        "block_id": "inject-javascript-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (type, ratings, commentaires, prix_par_nuit, Propreté). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2336,
      "position_y": 200,
      "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": 2672,
      "position_y": 200,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}