📊 Competitor Analysis
Compare engagement metrics across multiple X/Twitter accounts side by side.
📋 What It Does
- Visits each target profile
- Scrapes followers, following, tweet count, join date, bio, verified status
- Scrolls recent tweets to calculate avg likes, retweets, replies, and engagement rate
- Generates a comparison table and rankings
- Exports results as JSON
🌐 Browser Console Script
Steps:
- Go to
x.com(any page) - Edit CONFIG with target usernames
- Open console (F12) and paste
src/competitorAnalysis.js
Configuration:
const CONFIG = {
accounts: ['elonmusk', 'nichxbt', 'openai'],
tweetsToAnalyze: 20,
delayBetweenProfiles: 3000,
};
📊 Output
The script prints a comparison table and rankings:
📊 COMPETITOR COMPARISON
┌─────────────┬────────────┬──────────┬──────────┐
│ Account │ Followers │ Avg Likes│ Eng Rate │
├─────────────┼────────────┼──────────┼──────────┤
│ @elonmusk │ 190M │ 85,000 │ 2.1% │
│ @openai │ 3.5M │ 12,000 │ 1.8% │
│ @nichxbt │ 50K │ 500 │ 3.2% │
└─────────────┴────────────┴──────────┴──────────┘
📁 Files
src/competitorAnalysis.js— Browser console competitor analysis
⚠️ Notes
- The script navigates between profile pages; don't interact while running
- Engagement rate = (avg likes + avg retweets + avg replies) / followers × 100
- Results are also downloadable as JSON via auto-download
- Accuracy depends on how many tweets are visible when scrolling
⚡ Ready to try Competitor Analysis?
XActions is 100% free and open-source. No API keys, no fees, no signup.
Browse All Scripts