A powerful analytics tool to extract insights from your Twitter/X data archive. This tool helps you understand your follower relationships, tweet patterns, engagement metrics, and much more!
- Follower Management:
- Identify accounts you follow that don't follow you back
- Find "fans" (followers you don't follow back)
- New: Fetch real-time usernames and display names via Twitter API
- New: Export lists to CSV or copy profile URLs
- Content Analysis:
- Breakdown of Posts vs Replies
- Engagement trends over time
- Top performing hashtags
- Engagement Metrics: Calculate your engagement rate and social reach
- Account Overview: Track Likes, Retweets, and Engagement over time (filterable by date: 7D, 2W, 3M, 1Y, All)
- Posts vs Replies: Compare your original content vs interactions (filterable by date)
- Follower Relationships: Interactive charts for mutual vs one-sided connections
- Activity Heatmap: Visualize your posting habits by day and hour
- Top Hashtags: Bar chart of your most used tags
- Content strategy suggestions based on your data
- Follower growth opportunities
- Engagement optimization tips
- Connection management insights
- Python 3.8 or higher
- Your Twitter/X data archive (Download from Twitter Settings > Your Account > Download an archive)
-
Clone or download this repository
-
Install dependencies:
pip install -r requirements.txtSimple text-based analysis tool:
python analyzer.pyEnter the path to your Twitter archive folder when prompted.
Beautiful web-based dashboard with charts and visualizations:
streamlit run main.pyThis will open a browser window with your interactive analytics dashboard.
Your Twitter archive contains:
- β Followers: List of accounts following you
- β Following: List of accounts you follow
- β Tweets: All your tweets with metadata
- β Likes: Tweets you've liked
- β Direct Messages: Your DM history
- β Account Info: Profile and account details
- β Engagement Data: Retweets, replies, mentions
The tool provides insights like:
- "You follow 52 accounts but only 5 follow you back" - Helps identify one-sided relationships
- "Your most active hour is 3:00 PM" - Optimal posting times
- "90% of your tweets are replies" - Content mix analysis
- "#AI is your most used hashtag" - Topic analysis
- Personal Brand Optimization: Understand your Twitter presence and optimize your content strategy
- Audience Analysis: Learn who engages with your content
- Connection Management: Identify valuable connections vs one-sided follows
- Content Planning: Discover best times to post and trending topics
- Archive Exploration: Dive deep into your Twitter history
- All analysis is done locally on your machine
- No data is sent to external servers
- Your Twitter archive remains private
- No API keys or authentication required (except optional public profile fetching)
- Python: Core analytics engine
- Streamlit: Interactive web dashboard
- Plotly: Beautiful interactive charts
- Pandas: Data manipulation and analysis
twitter-analytics/
βββ analyzer.py # CLI-based analyzer
βββ main.py # Web-based dashboard
βββ twitter_utils.py # Core processing logic
βββ requirements.txt # Python dependencies
βββ README.md # Documentation
βββ twitter-YYYY-MM-DD-*/ # Your Twitter archive
βββ data/
βββ follower.js
βββ following.js
βββ tweets.js
βββ likes.js
βββ ...
- Log in to Twitter/X
- Go to Settings and Privacy > Your Account > Download an archive of your data
- Confirm your password
- Wait for Twitter to prepare your archive (can take 24-48 hours)
- Download the ZIP file and extract it
- Use the extracted folder path with this tool
Note: The dashboard includes a built-in step-by-step guide with images and a video tutorial!
- Quick Actions: Buttons to instantly view non-followers or fans
- Smart Filters: Filter charts by time range (7 days to All time)
- Metric Toggles: Switch between Likes, Retweets, and Engagement views
- CSV Exports: Download lists of users for external management
- Account Overview: Comprehensive line chart of your growth and engagement
- Posts vs Replies: Donut chart showing your content distribution
- Activity Heatmap: Best posting times visualization
- Hashtag Bar Chart: Your most used topics
- Follower Stats: Detailed breakdown of your network
Ideas for improvements:
- Network graph visualization of connections
- Sentiment analysis of tweets
- Tweet engagement prediction
- Export reports to PDF
- Compare multiple archives over time
- Integration with Twitter API for live data
============================================================
π€ ACCOUNT OVERVIEW
============================================================
π Account Details:
Username: @YourUsername
Display Name: Your Name
Account ID: 949939849796243456
Created: 2018-01-07
============================================================
π₯ FOLLOWER & FOLLOWING INSIGHTS
============================================================
π Basic Stats:
Followers: 5
Following: 52
Follower/Following Ratio: 0.10
π€ Mutual Connections:
Mutual follows (friends): 2
Followers you don't follow back: 3
Following who don't follow back: 50
Engagement rate: 3.8% of people you follow also follow you back
- Make sure you've extracted the Twitter archive ZIP file
- Use the full path to the extracted folder
- Check that the folder contains a
datasubfolder
- Verify your archive is complete
- Check that .js files exist in the
datafolder - Try downloading a fresh archive from Twitter
- Ensure all dependencies are installed:
pip install -r requirements.txt - Try updating Streamlit:
pip install --upgrade streamlit
This project is open source and available for personal use.
- Twitter/X for providing data export functionality
- Streamlit for the amazing dashboard framework
- The open-source community for inspiration
Made with β€οΈ for Twitter data enthusiasts
Note: This tool is not affiliated with Twitter/X. It's an independent project for personal data analysis.