Python based WhatsApp chat analyzer
The online demo can be found here
It is advisable to make a new virtual environment (with python 3.6) for this project. Step-by-Step
details on creating a virtual environment can be found here
Once you have created the virtual environment, activate it and use the following command.
git clone https://github.com/aqeelanwar/AnalyzeTheChat.git
cd AnalyzeTheChat
pip install -r requirements.txt
Export the WhatsApp chat you like to analyze using the following steps
- Open the WhatsApp chat
- Click the three vertical dots on top-right
- Click More
- Click Export Chat
- Click Without Media
- Save the generated .txt file where it is accessible
# Generic
python main.py --path <path-to-chat> --save_as <save-type>
# Example
python main.py --path theoffice.txt --keyword 'jello' --save_as pdf
Argument | Type | Explanation |
---|---|---|
path | Required | Path to the .txt file exported from previous step |
keyword | Optional | Keyword that needs to be searched in the chat and plotted w.r.t each contact in the chat |
save_as | Optional | Format of the saved graphs. [pdf, png, jpg] |
The results can be viewed in the results folder.
If you this repository or any part of it, please make a proper reference to
AnalyzeTheChat: https://github.com/aqeelanwar/AnalyzeTheChat