A Python tool to analyze and visualize WhatsApp chat data.
WhatsApp Chat Analyzer is a Python tool that enables you to analyze and visualize your WhatsApp chat data, whether it's a one-to-one chat or a group chat. With this tool, you can also analyze the data for a single person. It provides various metrics and insights about your chat history, including message count, word count, media sharing, most common words, most used emojis, activity timeline, and more. The tool is built using Python, Pandas, Streamlit, Emoji, and other libraries.
- Calculate total messages and words
- Identify media shared
- Extract URLs
- Generate word cloud
- Find the most common words
- Analyze emoji usage
- Create an activity timeline
- Visualize daily message counts
- Determine the most active day of the week
- Identify the most active month
- Generate an activity heatmap
- Analyze group-specific data (active users, chat percentages)
-
Clone the repository:
git clone https://github.com/1abhi6/analyse-whatsapp-chat.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Export your WhatsApp chat history as a text file (.txt) following the instructions provided in the Instructions section.
-
The project will be hosted soon.
-
Run the
app.py
script:streamlit run app.py
-
Launch the web application by opening the provided local URL in your web browser.
-
Select the chat file (.txt) and click on the Show Chat Analysis button.
-
Explore the generated metrics, charts, and insights based on your WhatsApp chat data.
Note: Steps are similar in Android or iOS devices.
To generate a .txt file without media from the WhatsApp app, you can follow these general steps:
-
Open the WhatsApp Android app on your device.
-
Navigate to the chat you want to export and open it.
-
Tap the three-dot menu icon in the top-right corner of the chat screen.
-
From the menu options, select "More" or "Settings" (the specific option may vary depending on the WhatsApp version).
-
Look for the "Export chat" or similar option and select it. This option allows you to export the chat conversation.
-
Choose whether to include media files or exclude them. In this case, To generate a .txt file without media, select the option to exclude media files.
-
Select the sharing or saving method for the exported file. You can choose to send the file via email, share it through messaging apps, or save it to a cloud storage service.
-
If you choose to save the file, select the destination on your device where you want to save it. Remember the location for later access.
-
Wait for the export process to complete. This may take a few moments depending on the size of the chat and the speed of your device.
Please note that these steps are a general guideline and may vary slightly depending on the version of WhatsApp or any updates made to the app.
Here are some examples of the insights you can obtain using WhatsApp Chat Analyzer:
This project is licensed under the MIT License. See the LICENSE file for more information.
For any questions or inquiries, feel free to reach out to me at:
- Linkedin: Abhishek Gupta