- python3
pip install selenium
- Clone of this repository
cd WhatsappGroupBot
- Download geckodriver from here and place it in the folder
- Get your FireFox profile path using
about:profiles
and paste it in theconfig.ini
file as the value forPROFILE_PATH
- Whatsapp Web must be synced with your account in Firefox browser
- Enter the exact group name in the
config.ini
file as the value forGROUP_NAME
- Place the
.csv
file with phone number in the columnnumber
and rename it asdata.csv
cd WhatsappGroupBot
python3 create_contact_list.py
contacts.csv
file will be created- Visit contacts.google.com and import the
contacts.csv
in the google account which contains contacts visible to your Whatsapp
python3 add_to_group.py
- The
create_contact_list.py
createscontacts.csv
by converting the numbers indata.csv
to a valid format that can be imported in Google Contacts. - The contacts are imported under label
event
add_to_group.py
usesdata.csv
to add the numbers to the specified Whatsapp group.