{
  "name": "Scrape Twitter profiles with Bright Data API and export to Google Sheets",
  "nodes": [
    {
      "id": "ac0410b2-4a26-4b4b-a4fe-b676754337df",
      "name": "📥 User Input Trigger",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1312,
        16
      ]
    },
    {
      "id": "4541f9d3-7c19-44e1-935b-56fce3e52317",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1376,
        -48
      ],
      "parameters": {
        "width": 224,
        "height": 208,
        "content": "→ Starts flow with Twitter URL & date range from form\n\n"
      }
    },
    {
      "id": "4c03a5bd-3121-4c13-ade9-33c8eaed1043",
      "name": "🚀 Trigger Twitter Scraping",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1040,
        16
      ]
    },
    {
      "id": "9fa82381-8c38-4704-8cb0-e8aa4e469d5a",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        -48
      ],
      "parameters": {
        "width": null,
        "height": 208,
        "content": "→ Sends scrape request to BrightData with user input\n\n"
      }
    },
    {
      "id": "4f544be2-c578-4de3-8cdf-db3f9e443530",
      "name": "🔄 Monitor Scraping Progress",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -784,
        16
      ]
    },
    {
      "id": "701e0ed1-3658-48cf-aebf-cefac22a94e3",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -848,
        -48
      ],
      "parameters": {
        "width": 224,
        "height": 208,
        "content": "→ Checks if scraping is still running or ready\n\n"
      }
    },
    {
      "id": "88cfbb92-c12f-45ba-bdab-c48476d33676",
      "name": "⏱️ Delay Before Recheck",
      "type": "n8n-nodes-base.wait",
      "position": [
        -544,
        16
      ]
    },
    {
      "id": "c976c82b-6e1d-4f51-8224-e314bfc703c7",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -608,
        -48
      ],
      "parameters": {
        "width": 224,
        "height": 208,
        "content": "→ Waits 1 minute before checking status again\n\n"
      }
    },
    {
      "id": "d107f520-3621-4d2d-9887-07a860461b95",
      "name": "✅ Is Scraping Ready?",
      "type": "n8n-nodes-base.if",
      "position": [
        -304,
        16
      ]
    },
    {
      "id": "8ee62b09-4073-424d-b051-381134548eb9",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        -48
      ],
      "parameters": {
        "width": 224,
        "height": 208,
        "content": "→ If ready, fetch data; if not, repeat check loop\n\n"
      }
    },
    {
      "id": "e53c14eb-e7cb-443a-bfeb-1a6842d839a6",
      "name": "📦 Fetch Twitter Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -48,
        0
      ]
    },
    {
      "id": "9b713be8-53f8-42e9-8c70-ae158ffee142",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -112,
        -48
      ],
      "parameters": {
        "width": 224,
        "height": 208,
        "content": "→ Downloads scraped tweet data using snapshot ID\n\n"
      }
    },
    {
      "id": "1182993d-0cf0-4a65-99d0-7cd65bfe56c2",
      "name": "📊 Store Twitter Data in Google Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        176,
        0
      ]
    },
    {
      "id": "eda5f904-6e95-4ffa-b894-e13915991745",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        128,
        -64
      ],
      "parameters": {
        "width": 256,
        "height": 240,
        "content": "→ Saves post data (likes, replies, user, etc.) into Sheet\n\n"
      }
    },
    {
      "id": "1681773c-b304-4a73-a4a2-0406ae9090e5",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1328,
        -272
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": "Create a Google Sheet with the following columns:\nid | user_posted | name | description | date_posted | photos | quoted_post | tagged_users | replies | reposts | likes | views | hashtags | followers |"
      }
    }
  ],
  "connections": {
    "✅ Is Scraping Ready?": {
      "main": [
        [
          {
            "node": "📦 Fetch Twitter Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "🔄 Monitor Scraping Progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📥 User Input Trigger": {
      "main": [
        [
          {
            "node": "🚀 Trigger Twitter Scraping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "📦 Fetch Twitter Data": {
      "main": [
        [
          {
            "node": "📊 Store Twitter Data in Google Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏱️ Delay Before Recheck": {
      "main": [
        [
          {
            "node": "✅ Is Scraping Ready?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🚀 Trigger Twitter Scraping": {
      "main": [
        [
          {
            "node": "🔄 Monitor Scraping Progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔄 Monitor Scraping Progress": {
      "main": [
        [
          {
            "node": "⏱️ Delay Before Recheck",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}