Chat Analyzer and Statistics Script for Whatsapp individual chats in Python
You need python up and running on your system to run this script. Download and install from Python
Additionally, you need matplotlib and urlextract python libraries installed. Install them using pip.
pip install matplotlib
pip install urlextract
- Open WhatsApp on mobile
- Open the chat you want to analyze
- Click on the three dots menu on top right
- Select More > Export Chat (Choose Without Media for more statistics)
- Move this txt file to your PC
- Simply copy and paste the txt file in the directory of the script
- Run the python script using the command
python [path_to_script]/whatsanalyze.py
- Follow instructions to get results (A demo txt chat file has been added to verify the results with the name chat)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please find the chat.txt file as a sample chat file. I've intentionally added two media files, two links and multiple line messages in this file. Files and Links are of two kinds each.
Please make sure to update the tests as appropriate.