A streamlit app used to analyze your whatsapp chats
Link to app --> https://whatsapp-chat-analyzer-project.streamlit.app/
The project is organized as follows:
-
requirements.txt
: This file lists all the Python libraries and dependencies required to run the project. -
.gitignore
: This file specifies which files and directories should be ignored by Git. -
README.md
: This file is an outcome of displaying the projects documentation. -
notebooks
: This directory contains Jupyter notebook file which has the rough code along with sample chat file which was created during the project implementation. -
setup.sh and Procfile
: Files required for the code deployment in cloud. -
preprocessor.py
: The file where the data preprocessing and cleaning is done. -
utils.py
: The file where the functions are created and these functions are used in the app.py -
app.py
: This is the main file for the analysis of whatsapp chats in web using streamlit.
To get started with this project, follow these steps:
- Clone the repository to your local machine using the following command:
git clone https://github.com/rachitdani/Whatsapp-Chat-Analyzer.git
- Navigate to the project directory:
cd Whatsapp-Chat-Analyzer.git
- Install the required dependencies using pip:
pip install -r requirements.txt
- Run the Streamlit application:
streamlit run app.py
- A web app pop-up will appear where you will upload your whatsapp chat file to be analyzed
For downloading your whatsapp file follow these steps :
- Go to the chat you want to analyze it can be a group chat or a personal chat
- Then go to chat info and scroll down until you see the
Export Chat
Option - Now Click on
Without Media
and download it - Now Extract the file and upload the file to the streamlit app and great you have just got your data analyzed.
Upload Chat File and Select Overall for Overall Group Analysis or any user in the dropdown and Click on Show Analysis
Contributions are welcome !! I have only included the basic stopwords nltk library along with a few additional stopwords there are a lot more in our regular chatting language also a lot more features can be added to this project . If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix:
git checkout -b feature-name
. - Make your changes and commit them:
git commit -m 'Description of your changes'
. - Push your changes to your fork:
git push origin feature-name
. - Create a pull request on the original repository.