{
  "version": "1.0.0",
  "exported_at": "2026-06-01T12:00:00.000Z",
  "project": {
    "name": "Airbnb Scraper by URL",
    "description": "Scrapes Airbnb room/detail URLs and appends one CSV row per URL. Uses Strategy A multi-URL navigation with loop-continue, matching Octoparse-style fields: keyword/location, room title, room name, rating, review count, price, URL, host, and host type. Airbnb uses dynamic hashed classes and may show 404, CAPTCHA, rate-limit, or unavailable-price states; invalid/blocked pages may yield blank fields.",
    "color": "bg-[#ff385c]",
    "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": 240,
      "config": {
        "width": 1920,
        "height": 1080,
        "color": "bg-[#4589ff]"
      }
    },
    {
      "block_id": "navigate-1",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 480,
      "position_y": 240,
      "config": {
        "urls": [
          "https://www.airbnb.com/rooms/791391176672941101?adults=1&category_tag=Tag%3A8678&children=0&enable_m3_private_room=true&infants=0&pets=0&check_in=2023-07-23&check_out=2023-07-29&source_impression_id=p3_1688612322_n7nSBvCbC9ZSyH2b&previous_page_section_name=1000&federated_search_id=63856029-82fb-450c-840a-49d7b14670d5",
          "https://www.airbnb.com/rooms/15988694?adults=1&category_tag=Tag%3A8678&children=0&enable_m3_private_room=true&infants=0&pets=0&check_in=2023-07-29&check_out=2023-08-03&source_impression_id=p3_1688612322_YhpcQ6V42WvYvxPH&previous_page_section_name=1000&federated_search_id=63856029-82fb-450c-840a-49d7b14670d5",
          "https://www.airbnb.com/rooms/39361974?adults=1&category_tag=Tag%3A8678&children=0&enable_m3_private_room=true&infants=0&pets=0&check_in=2023-07-16&check_out=2023-07-21&source_impression_id=p3_1688612322_ML6NhZO6s60%2FQuMS&previous_page_section_name=1000&federated_search_id=63856029-82fb-450c-840a-49d7b14670d5"
        ],
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "wait-for-page-load-1",
      "block_type": "process",
      "title": "Wait for Page Load",
      "description": "Wait for page to finish loading",
      "position_x": 840,
      "position_y": 240,
      "config": {
        "timeout": 45,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "sleep-1",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 1200,
      "position_y": 240,
      "config": {
        "duration": 3,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "wait-for-element-1",
      "block_type": "process",
      "title": "Wait for Element",
      "description": "Wait until element appears",
      "position_x": 1560,
      "position_y": 240,
      "config": {
        "selector": "h1",
        "timeout": 30,
        "visible": true,
        "color": "bg-[#08bdba]"
      }
    },
    {
      "block_id": "structured-export-1",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 1920,
      "position_y": 240,
      "config": {
        "rowSelector": "body",
        "fileName": "airbnb-scraper-by-url.csv",
        "saveLocation": "C:\\Users\\theskd\\Documents\\UScraper\\templates",
        "includeHeaders": true,
        "fileMode": "append",
        "color": "bg-[#42be65]",
        "columns": [
          {
            "name": "keyword",
            "selector": "(() => { const u = new URL(location.href); const q = u.searchParams.get('query') || u.searchParams.get('location'); if (q) return q; const h2s = Array.from(document.querySelectorAll('h2')).map(e => (e.textContent || '').trim()).filter(Boolean); const loc = h2s.find(t => /^(Room|Home|Guest suite|Apartment|Condo|House|Private room)\\s+in\\s+/i.test(t)) || ''; const cleaned = loc.replace(/,\\s*United Kingdom$/i, '').replace(/^(Room|Home|Guest suite|Apartment|Condo|House|Private room)\\s+in\\s+/i, '').trim(); return cleaned || ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "roomTitle",
            "selector": "(() => { const h2s = Array.from(document.querySelectorAll('h2')).map(e => (e.textContent || '').trim()).filter(Boolean); const t = h2s.find(t => /^(Room|Home|Guest suite|Apartment|Condo|House|Private room)\\s+in\\s+/i.test(t)); return t ? t.replace(/,\\s*United Kingdom$/i, '') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "roomName",
            "selector": "(() => { const h1 = (document.querySelector('h1')?.textContent || '').trim(); if (/^Oops!?$/i.test(h1)) return ''; return h1; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "roomRating",
            "selector": "(() => { const txt = document.body.innerText || ''; const og = document.querySelector('meta[property=\"og:title\"]')?.content || ''; const m = txt.match(/Rated\\s+([0-9.]+)\\s+out of 5/i) || og.match(/★\\s*([0-9.]+)/); return m ? m[1] : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "roomReviewcount",
            "selector": "(() => { const txt = document.body.innerText || ''; const m = txt.match(/from\\s+([0-9,]+)\\s+reviews/i) || txt.match(/([0-9,]+)\\s+reviews/i); return m ? m[1].replace(/,/g, '') : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "roomPrice",
            "selector": "(() => { const txt = (document.body.innerText || '').replace(/\\s+/g, ' '); const m = txt.match(/((?:[$€£¥₹]|G\\$|CA\\$|AU\\$|USD|EUR|GBP)\\s*[0-9,.]+\\s*(?:[A-Z]{3}\\s*)?(?:per\\s+night|\\/\\s*night|night))/i); return m ? m[1].trim() : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "roomURL",
            "selector": "location.href",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Host",
            "selector": "(() => { const txt = (document.body.innerText || '').replace(/\\s+/g, ' '); const m = txt.match(/Stay with\\s+([A-Za-z][A-Za-z .'-]{0,80}?)(?=\\s+(?:Superhost|\\d+\\s+years hosting|Listing highlights|Hosted|$))/i); return m ? ('Stay with ' + m[1].trim()) : ''; })()",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "hostType",
            "selector": "(() => { const txt = document.body.innerText || ''; return /\\bSuperhost\\b/i.test(txt) ? 'Superhost' : ''; })()",
            "attribute": "text",
            "isJs": true
          }
        ]
      }
    },
    {
      "block_id": "sleep-2",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 2280,
      "position_y": 240,
      "config": {
        "duration": 1,
        "color": "bg-[#8d8d8d]"
      }
    },
    {
      "block_id": "loop-continue-1",
      "block_type": "process",
      "title": "Loop Continue",
      "description": "Continue multi-input loop",
      "position_x": 2640,
      "position_y": 240,
      "config": {
        "color": "bg-[#ff832b]"
      }
    }
  ],
  "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": "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-entry",
      "element_type": "group",
      "title": "Entry & Setup",
      "color": "#4589ff",
      "position_x": 48,
      "position_y": 136,
      "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": 408,
      "position_y": 136,
      "width": 2120,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "navigate-1",
          "wait-for-page-load-1",
          "sleep-1",
          "wait-for-element-1",
          "sleep-2"
        ]
      }
    },
    {
      "id": "group-extract",
      "element_type": "group",
      "title": "Data Extraction",
      "color": "#42be65",
      "position_x": 1848,
      "position_y": 136,
      "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": 2568,
      "position_y": 136,
      "width": 380,
      "height": 296,
      "z_index": 20,
      "data": {
        "memberBlockIds": [
          "loop-continue-1"
        ]
      }
    },
    {
      "id": "note-overview",
      "element_type": "note",
      "title": "Overview",
      "content": "Scrapes Airbnb room/detail URLs and appends one CSV row per URL. Uses Strategy A multi-URL navigation with loop-continue, matching Octoparse-style fields: keyword/location, room title, room name, rating, review count, price, URL, host, and host type. Airbnb uses dynamic hashed classes and may show 404, CAPTCHA, rate-limit, or unavailable-price states; invalid/blocked pages may yield blank fields.",
      "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 3 pages. Pair with loop-continue at the end of each iteration.",
      "color": "#ee5396",
      "position_x": 680,
      "position_y": 220,
      "width": 328,
      "height": 107,
      "z_index": 22,
      "data": {
        "block_id": "navigate-1"
      }
    },
    {
      "id": "note-block-structured-export-1",
      "element_type": "note",
      "title": "Note: Structured Export",
      "content": "Structured export with JS columns (keyword, roomTitle, roomName, roomRating, roomReviewcount). These selectors are fragile — update if the site layout changes.",
      "color": "#ee5396",
      "position_x": 2120,
      "position_y": 220,
      "width": 340,
      "height": 133,
      "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": 220,
      "width": 340,
      "height": 123,
      "z_index": 22,
      "data": {
        "block_id": "loop-continue-1"
      }
    }
  ]
}