{
  "version": "1.0.0",
  "exported_at": "2025-08-24T04:10:34.569867300+00:00",
  "project": {
    "name": "Trip Advisor Hotels Scrapper",
    "description": null,
    "color": "bg-blue-500",
    "template_id": null
  },
  "blocks": [
    {
      "block_id": "navigate-1756006431429",
      "block_type": "process",
      "title": "Navigate",
      "description": "Go to a URL",
      "position_x": 225,
      "position_y": -62,
      "config": {
        "color": "bg-purple-500",
        "url": "https://example.com"
      }
    },
    {
      "block_id": "sleep-1756006490545",
      "block_type": "process",
      "title": "Sleep",
      "description": "Wait for specified time",
      "position_x": 493,
      "position_y": 117,
      "config": {
        "color": "bg-yellow-500",
        "duration": 12
      }
    },
    {
      "block_id": "structured-export-1756006502418",
      "block_type": "process",
      "title": "Structured Export",
      "description": "Export data with custom columns",
      "position_x": 939,
      "position_y": 10,
      "config": {
        "color": "bg-green-500",
        "fileName": "trip-advisor-review.csv",
        "columns": [
          {
            "name": "Reviewer",
            "selector": ".BMQDV",
            "attribute": "text"
          },
          {
            "name": "Rating",
            "selector": "ROW.querySelector('.VVbkp svg[data-automation=\"bubbleRatingImage\"] title')?.textContent || 'No review found'",
            "attribute": "text",
            "isJs": true
          },
          {
            "name": "Title",
            "selector": "[data-test-target=\"review-title\"]",
            "attribute": "text"
          },
          {
            "name": "Description",
            "selector": "[data-automation=\"ugcReviewReadMore_Content\"]",
            "attribute": "text"
          },
          {
            "name": "Other Info",
            "selector": ".TgEgi",
            "attribute": "text"
          }
        ],
        "rowSelector": ".JVaPo.Gi.kQjeB",
        "saveLocation": "",
        "includeHeaders": true,
        "fileMode": "append"
      }
    },
    {
      "block_id": "inject-javascript-1756006711012",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript code",
      "position_x": 1109,
      "position_y": 240,
      "config": {
        "color": "bg-gray-500",
        "jsCode": "// Instant scroll to bottom\nwindow.scrollTo(0, document.body.scrollHeight);\n\n// Or using scrollTo with options\nwindow.scrollTo({\n    top: document.body.scrollHeight,\n    behavior: 'smooth' // smooth scrolling\n});",
        "waitForCompletion": true,
        "timeout": 10
      }
    },
    {
      "block_id": "element-exists-1756006745536",
      "block_type": "process",
      "title": "Element Exists",
      "description": "Check if element exists",
      "position_x": 1380,
      "position_y": 234,
      "config": {
        "color": "bg-pink-500",
        "selector": "[aria-label=\"Next page\"]"
      }
    },
    {
      "block_id": "end-1756006794245",
      "block_type": "output",
      "title": "End",
      "description": "Terminate execution flow",
      "position_x": 1664,
      "position_y": 280,
      "config": {
        "color": "bg-red-500"
      }
    },
    {
      "block_id": "inject-javascript-1756006964430",
      "block_type": "process",
      "title": "Inject JavaScript",
      "description": "Execute custom JavaScript code",
      "position_x": 706,
      "position_y": 454.5,
      "config": {
        "color": "bg-gray-500",
        "jsCode": "document.querySelector('[aria-label=\"Next page\"]').click();",
        "waitForCompletion": true,
        "timeout": 10
      }
    }
  ],
  "connections": [
    {
      "from_block_id": "navigate-1756006431429",
      "from_connector_id": "right",
      "to_block_id": "sleep-1756006490545",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "sleep-1756006490545",
      "from_connector_id": "right",
      "to_block_id": "structured-export-1756006502418",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "structured-export-1756006502418",
      "from_connector_id": "right",
      "to_block_id": "inject-javascript-1756006711012",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-1756006711012",
      "from_connector_id": "right",
      "to_block_id": "element-exists-1756006745536",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1756006745536",
      "from_connector_id": "false",
      "to_block_id": "end-1756006794245",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "element-exists-1756006745536",
      "from_connector_id": "true",
      "to_block_id": "inject-javascript-1756006964430",
      "to_connector_id": "left"
    },
    {
      "from_block_id": "inject-javascript-1756006964430",
      "from_connector_id": "right",
      "to_block_id": "sleep-1756006490545",
      "to_connector_id": "left"
    }
  ]
}