πŸ“Š Find, scrape & analyze Twitter posts by name with Bright Data & Gemini

⚑ 1,895 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

This n8n workflow template automates the process of collecting and analyzing Twitter (X) posts for any public profile, then generates a clean, AI-powered summary including key metrics, interests, and activity trends.

πŸš€ What It Does

πŸ› οΈ Step-by-Step Setup

  1. Deploy the public form to collect full name and date range.
  2. Build a Google search query using the name to find their X profile.
  3. Scrape the search results via Bright Data (Web Unlocker zone).
  4. Parse the page content using the HTML node.
  5. Use Gemini AI to extract the correct X profile URL.
  6. Pull full post data via Bright Data dataset snapshot API.
  7. Transform post data into clean structured fields: date_posted, description, hashtags, likes, views, quoted_post.date_posted, quoted_post.description, replies, reposts, quotes, and tagged_users.profile_name.
  8. Analyze all posts using Google Gemini for interest detection and persona generation.
  9. Save results to a Google Sheet: structured post data + AI-written summary.
  10. Show success or fallback messages depending on profile detection or scraping status.

🧠 How It Works: Workflow Overview

πŸ“¨ Final Output

πŸ” Credentials Used

⚠️Community Node Dependency This workflow uses a custom community node: n8n-nodes-brightdata Install it via UI (Settings β†’ Community Nodes β†’ Install).

πŸ”— Nodes Used

Google Sheets, Basic LLM Chain, Structured Output Parser, n8n Form Trigger, Google Gemini Chat Model, n8n Form

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup