A Streamlit app that reads an exported WhatsApp chat file and reports message volume, activity timelines, word frequency, media sharing and sentiment trends.
- Message metrics — total messages, links and shared media per participant.
- Timeline analytics — activity by hour, day, month and year, with a monthly heatmap.
- Word frequency and word cloud — most common words and phrases, with stop words removed.
- Media breakdown — images, videos and documents counted separately.
- Sentiment analysis — emotional tone over time, plotted as a trend.
git clone https://github.com/sshemanth/chat-analyzer.git
cd chat-analyzer
pip install -r requirements.txt
streamlit run main.pyThen open the URL Streamlit prints (usually http://localhost:8501), upload an exported chat file and pick the date format used in it.
- Open the individual or group chat.
- Tap Options → More → Export chat.
- Choose Without media.
Upload the resulting .txt file. Media counts are read from the export's attachment markers, so the media files themselves are not needed.
streamlit, pandas, numpy, matplotlib, seaborn, nltk, urlextract, emoji, wordcloud, plotly. See requirements.txt.
| File | Purpose |
|---|---|
main.py |
Streamlit UI: upload, date format, filters, page layout |
functions.py |
Parsing, statistics and plotting helpers |
stop_hinglish.txt |
Stop-word list including Hinglish terms |
Procfile / setup.sh |
Deployment configuration for Streamlit hosting |
The interface layout follows an earlier open-source WhatsApp chat analyser. The parsing, statistics and plotting in functions.py are maintained here. If you are the original author of a component used here and want it attributed differently, open an issue.
MIT — see LICENSE.