main.py- Main WhatsApp bulk sender scriptconfig.py- Configuration settings (delays, selectors, etc.)contacts.csv- Sample CSV file with contact formatrequirements.txt- Python dependenciessetup.py- Automated setup scriptsetup.bat- Windows setup scriptsetup.sh- Unix/Linux/Mac setup scripttest_setup.py- Test script to verify installationREADME.md- Comprehensive documentation
Windows:
setup.batUnix/Linux/Mac:
./setup.sh- Install dependencies:
pip install -r requirements.txt- Install Playwright browsers:
playwright install chromium- Test setup:
python test_setup.py- Edit contacts.csv with your contacts:
PhoneNumber,Message,AttachmentPath
+1234567890,"Hello! This is a test message.",
+0987654321,"Hi! Please find attached file.",/path/to/file.jpg- Run the script:
python main.py-
Scan QR code when WhatsApp Web opens
-
Monitor progress in console and
whatsapp_bulk_sender.log
Edit config.py to customize:
- Message delays (30-90 seconds by default)
- File size limits
- Browser settings
- CSS selectors
- Dependencies missing? Run
python test_setup.py - QR code timeout? Scan within 2 minutes
- Invalid numbers? Use international format (+country_code_number)
- Attachments failing? Check file paths and size limits
β
Automated WhatsApp Web interaction
β
CSV contact management
β
File attachments (images, videos, PDFs)
β
Human-like delays (30-90 seconds)
β
Comprehensive logging
β
Error handling and recovery
β
Safe stop/resume capability
- Test with few contacts first
- Comply with WhatsApp Terms of Service
- Use responsibly and ethically
- Keep backups of your data
- Check
whatsapp_bulk_sender.logfor detailed errors - Run
python test_setup.pyto verify setup - Read the full
README.mdfor comprehensive documentation
Happy messaging! π±β¨