This code analyses a WhatsApp conversation and gives some fun stats. It has been tested for personal chat. It should work for group chats too, hasn't been tested though.
The Whatsapp conversation you want to analyze must be exported from Whatsapp.
- Open the chat you want to analyze.
- Click on the three dots on the top right corner
- Select more > export chat
- Choose export without media
- Select appropriate export medium such that the file can be saved in the same folder from where you will run the code.
- python3
- matplotlib, re, wordcloud, collections
- WhatsApp conversation saved as 'demo.txt' file (exported and renamed) in the same folder as code
python3 ConversationAnalyzer.py
On your terminal type the above command