Skip to content

PS1607/WhatsApp-Automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp Automation

Need to make a WhatsApp Group for more than 100 people from an Excel Sheet?

You can export the sheet to CSV, import the Contacts to Google Contacts, then add each contact individually. Then delete the extra added contacts from Google Contacts.

Or, you could use this script for automating the process for you.
Currently it only supports sending the WhatsApp Group Invite to each person individually without saving the contacts.

Pre-requisites:

How to make it work? (macOS)

Getting your system ready:

  1. Download the ZIP file of the Repository and unzip it.
  2. Head over to System Preferences -> Security & Privacy -> Accessibility.
  3. Click the Lock to make changes.
  4. Click + and search Terminal from the list of Applications.
  5. Tick it.
  6. Close the System Preferences.
  7. Open WhatsApp Desktop and make sure you're logged in and all the syncing is completed.

Running the Automation:

  1. Open WhatsApp_Automation -> numbers.txt
  2. Add all the contacts from your excel sheet in this format -> CCXXXXXXXXXX (Where CC is the Country Code and XXXXXXXXXX is the WhatsApp number of individual, eg: 919876543210. Make sure there are no '+' or '-' or spaces in the number. This is how it shall look. Don't remove the END image
  3. Open Terminal and cd to the WhatsApp_Automation repository.
  4. Run the Script using this command sh WhatsApp_Invite_Automation.sh
  5. You will get a prompt asking you to paste the WhatsApp Group Invite Link. Paste it.
  6. The Script will run in the foreground. Don't disturb the process.

How to make it work? (Windows)

Getting your system ready:

  1. Download the ZIP file of the Repository and unzip it.
  2. Open WhatsApp Desktop and make sure you're logged in and all the syncing is completed.

Running the Automation:

  1. Open WhatsApp_Automation -> numbers.txt
  2. Add all the contacts from your excel sheet in this format -> CCXXXXXXXXXX (Where CC is the Country Code and XXXXXXXXXX is the WhatsApp number of individual, eg: 919876543210. Make sure there are no '+' or '-' or spaces in the number.
    Remove the END. This is how it shall look.

    Screenshot 2022-03-03 211401
  3. Run the script by double clicking whatsapp_windows.vbs.
  4. Follow the on-screen instructions.
  5. You will get a prompt asking you to paste the WhatsApp Group Invite Link. Paste it.
  6. The Script will run in the foreground. Don't disturb the process.

This was built using WhatsApp API and AppleScript. This is not a new concept, people have been doing it since a long time back, but no one applied it to this usecase.

Further Improvements Planned

  • Primary:
    • Currently the Automation Process only works on macOS. I'm implementing it on Windows also.
    • Script only sends WhatsApp group invite to people. Need to add a way to Add Them to Group Directly.
    • Planning to Automate the whole process; taking the numbers from Google Sheets and Adding them to Group.
  • Secondary:
    • Making a GUI

About

WhatsApp Automation using Scripting on macOS and Windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors