This project automates sending messages via WhatsApp using Python and Selenium. It controls a browser to send messages to specific phone numbers through WhatsApp Web.
- Automated message sending through WhatsApp Web
- Reads phone numbers from a CSV file
- Loads message content from a text file
-
Python 3.x
-
The following Python libraries:
selenium
webdriver-manager
-
Clone the Repository
git clone https://github.com/ccventure/whatsapp-marketing-automation.git wma cd wma
-
Install Dependencies
pip install -r requirements.txt
-
Configure Settings
- Update the
config.py
file with yourABS_PATH
,IMAGE_PATH
, andCHROME_PROFILE_PATH
settings. - Specify the message content in
message.txt
.
- Update the
-
Prepare the CSV File
Create a
numbers.csv
file with phone numbers. The file should have the following format:numbers, 393518285322, 994518774569,
-
Launch the Browser and Log into WhatsApp Web
Before running the script, you need to manually log into WhatsApp Web in the browser.
-
Run the Script
python main.py
The script will read phone numbers from
numbers.csv
and send the message to each number.
config.py
: Configuration settings.browser.py
: Browser setup and control.messenger.py
: Message sending functionality.message.txt
: Text file containing the message to be sent.numbers.csv
: CSV file with phone numbers.
This project is licensed under the MIT License - see the LICENSE file for details.