Skip to content

About

Message statistics, activity timelines and sentiment trends from exported chat logs. Python and Streamlit.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

40 Commits

Folders and files

Repository files navigation

Chat Analyzer

A Streamlit app that reads an exported WhatsApp chat file and reports message volume, activity timelines, word frequency, media sharing and sentiment trends.

What it reports

  • 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.

Run it

git clone https://github.com/sshemanth/chat-analyzer.git
cd chat-analyzer
pip install -r requirements.txt
streamlit run main.py

Then open the URL Streamlit prints (usually http://localhost:8501), upload an exported chat file and pick the date format used in it.

Exporting a chat

  1. Open the individual or group chat.
  2. Tap Options → More → Export chat.
  3. 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.

Requirements

streamlit, pandas, numpy, matplotlib, seaborn, nltk, urlextract, emoji, wordcloud, plotly. See requirements.txt.

Files

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

Note on provenance

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.

License

MIT — see LICENSE.

About

Message statistics, activity timelines and sentiment trends from exported chat logs. Python and Streamlit.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages