Marks Sender Bot is a Python-based GUI application that automates the process of sending student marks to parents via WhatsApp. It reads data from an Excel file and uses Selenium to interact with WhatsApp Web for message delivery.
- User-friendly GUI built with Tkinter and ttkbootstrap
- Excel file parsing for student data
- Automated WhatsApp messaging using Selenium
- Progress tracking and status updates
- Customizable message templates
-
Clone the repository:
git clone https://github.com/BhuvanSA/WhatsappMarksBot.git cd marks-sender-bot -
Create a virtual environment (optional but recommended):
conda create -n whatsappbot python=3.11 conda activate whatsappbot -
Install the required dependencies:
pip install -r requirements.txt -
Ensure you have Chrome installed, as the bot uses ChromeDriver for Selenium.
-
Run the main application:
python src/main.py -
Use the GUI to:
- Select the Excel file containing student data
- Choose the appropriate sheet and internal assessment
- Set the range of students to process
- Enter the mentor's name
- Start the sending process
-
The application will open WhatsApp Web. Scan the QR code to log in.
-
The bot will automatically send messages to the specified range of students.
-
Monitor the progress and status in the GUI table.
src/main.py: Entry point of the applicationgradebook/gradebook.py: Main GUI and application logicexcelManager.py: Handles Excel file operationsseleniumManager.py: Manages Selenium WebDriver for WhatsApp interactionmessageGenerator.py: Generates message content
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
- ttkbootstrap for the modern GUI elements
- Selenium for web automation
- openpyxl for Excel file handling
This project is for educational purposes only. Use it responsibly and in compliance with WhatsApp's terms of service.
