let’s build a twitter scraper that finds viral content ideas for...

J.B.@VibeMarketer_
4 views
Jul 01, 2025
~2 min read
1
let’s build a twitter scraper that finds viral content ideas for you, step-by-step using n8n.
i used this exact workflow to grow my account from 0 to 12k followers in 45 days.
i used this exact workflow to grow my account from 0 to 12k followers in 45 days.
2
1 / what this workflow actually does
drop in a keyword like “ai agents” or “email marketing”:
- it scrapes X (Twitter) for recent high-performing tweets
- pulls tweet content, likes, replies, RTs, link
- sorts it all into a clean Google Sheet for you to analyze, repurpose, or build off of
you’re left with a data-backed swipe file of viral hooks, ideas, and formats - ready to plug into tweets, threads, videos, or ads.
drop in a keyword like “ai agents” or “email marketing”:
- it scrapes X (Twitter) for recent high-performing tweets
- pulls tweet content, likes, replies, RTs, link
- sorts it all into a clean Google Sheet for you to analyze, repurpose, or build off of
you’re left with a data-backed swipe file of viral hooks, ideas, and formats - ready to plug into tweets, threads, videos, or ads.
3
2 / what you’ll need:
– an n8n cloud account (or self-hosted if you’re fancy)
– a free Apify account
– a twitter . io api key
– a Google Sheet to store your scraped content
– 10 minutes to set it all up
– an n8n cloud account (or self-hosted if you’re fancy)
– a free Apify account
– a twitter . io api key
– a Google Sheet to store your scraped content
– 10 minutes to set it all up
4
3 / set up your Apify actor:
go to Apify and search for “Twitter Scraper”
- configure it with your keyword(s), number of results (I usually pull 50–100), and any filters (like recent or popular)
- test the actor manually first to make sure it returns tweet content and engagement data
pro tip: you can run the actor with a schedule trigger, which makes automation seamless inside n8n.
go to Apify and search for “Twitter Scraper”
- configure it with your keyword(s), number of results (I usually pull 50–100), and any filters (like recent or popular)
- test the actor manually first to make sure it returns tweet content and engagement data
pro tip: you can run the actor with a schedule trigger, which makes automation seamless inside n8n.
5
4 / build the n8n flow
inside n8n, build a flow that does the following:
Webhook trigger (or manual trigger to start the scrape)
HTTP Request – hits your Apify actor and runs it with your keyword
Function Node – clean + extract the tweet data (text, link, likes, etc.)
Google Sheets Node – pushes everything to a spreadsheet
this flow runs in under 2 minutes and gives me ready-to-use insights every time.
inside n8n, build a flow that does the following:
Webhook trigger (or manual trigger to start the scrape)
HTTP Request – hits your Apify actor and runs it with your keyword
Function Node – clean + extract the tweet data (text, link, likes, etc.)
Google Sheets Node – pushes everything to a spreadsheet
this flow runs in under 2 minutes and gives me ready-to-use insights every time.
6
5 / how I use it
once scraped, I sort tweets by format, hook type, and engagement.
then I study what made them work - and remix the angles in my own voice.
i use this for:
– threads
– hooks
– ads
– video scripts
– email subject lines
it’s like having a viral copy cheat sheet on demand.
once scraped, I sort tweets by format, hook type, and engagement.
then I study what made them work - and remix the angles in my own voice.
i use this for:
– threads
– hooks
– ads
– video scripts
– email subject lines
it’s like having a viral copy cheat sheet on demand.
7
6 / recap
this workflow gives you:
– zero-scroll research
– data-backed content ideas
– a living swipe file that updates as often as you want
every growth marketer, creator, or founder should have this running.
full video walkthrough of build here as well: x.com/VibeMarketer_/…
this workflow gives you:
– zero-scroll research
– data-backed content ideas
– a living swipe file that updates as often as you want
every growth marketer, creator, or founder should have this running.
full video walkthrough of build here as well: x.com/VibeMarketer_/…