ChatLens is a powerful, interactive web application built with Streamlit that analyzes your WhatsApp chat history and presents detailed insights into your conversation patterns, activity timelines, most used words, emoji usage, and more — all locally, with no data sent to servers.
- 📈 Top statistics: Total messages, words, media shared, and links
- 🗓️ Timelines: Monthly and daily chat activity
- 🧭 Activity map: Heatmaps and bar charts for most active days and hours
- 🧑🤝🧑 User comparison: See who contributes most to the conversation
- ☁️ Word cloud: Most common words used
- 😂 Emoji analysis: Which emojis are used most often
- 🗂️ Filter by user: Analyze individual participants or overall stats
Python Streamlit Pandas Matplotlib Seaborn WordCloud urlextract Emoji Regex
- Clone the repository
git clone https://github.com/Arpit12890/ChatLens-Whatsapp-Chat-Analyzer.git
cd ChatLens-Whatsapp-Chat-Analyzer- Create and activate virtual environment (optional but recommended)
python -m venv venv
.�env\Scripts�ctivate # On Windows- Install dependencies
pip install -r requirements.txtIf you don’t have a
requirements.txt, manually install:
pip install streamlit pandas matplotlib seaborn wordcloud urlextract emoji- Run the application
streamlit run app.pyThen visit http://localhost:8501 in your browser.
ChatLens/
├── app.py # Main Streamlit app
├── helper.py # Logic for analysis and plotting
├── preprocessor.py # WhatsApp chat parsing and cleaning
├── stop_hinglish.txt # Custom stopwords for word filtering
└── README.md # Project documentation
- Export a WhatsApp chat (
.txtformat) from your phone - Run the app with
streamlit run app.py - Upload the exported
.txtfile via sidebar - Explore insights using interactive visualizations!
All processing is done locally in your browser or system — no data is stored or sent to any server.
Made with ❤️ by Arpit Gupta
This project is licensed under the MIT License.