A Python script that automatically summarizes WhatsApp group conversations by:
- Accessing WhatsApp Web
- Extracting messages from specified groups
- Generating concise summaries using AI-powered text summarization
- 🚀 Automatic Login - Connects via WhatsApp Web with QR code
- 📊 Message Extraction - Retrieves specified number of messages
- ✨ Smart Summarization - Uses Sumy's LSA algorithm for key point extraction
- 📈 Activity Analysis - Shows top participants and message statistics
- 🔒 Privacy Focused - Runs locally without storing your messages
- Clone this repository:
git clone https://github.com/KrishNatrium/Whatsummariser.git
cd Whatsummariser- Install dependencies:
pip install -r requirements.txt- Download NLTK data (first-time setup):
python -c "import nltk; nltk.download('punkt')"- Run the script:
python whatsapp_summary.py
or
python newS.py-
Follow the on-screen instructions:
- Scan the QR code when prompted
- Enter the exact group name
- Specify number of messages to summarize
-
View your summary in the terminal!
WhatsApp Summarizer
------------------
Enter exact group name: Project Team
Number of messages to summarize: 50
✓ Group selected
Loaded 50/50 messages
📝 Summary:
The team discussed the upcoming project deadline. Key tasks include completing the
frontend by Friday and preparing documentation. Several members volunteered for
specific components. The next meeting is scheduled for Thursday at 2PM.
👥 Top Participants:
- Alice (15 messages)
- Bob (12 messages)
- Carol (8 messages)
Common Issues:
ChromeDrivererrors: Ensure you have Chrome installed and updatedNLTK dataerrors: Run the NLTK download command again- Group not found: Verify the exact group name including emojis/capitalization
- Python 3.8+
- Google Chrome browser
- Active WhatsApp account
- Stable internet connection
MIT License - Free for personal and educational use
💡 Tip: For best results, summarize conversations with 50+ messages. The more input, the better the summary!