Skip to content

This is a simple script that sends multiple WhatsApp messages using python script.

Notifications You must be signed in to change notification settings

inforkgodara/automate-whatsapp-messages-python-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Automate Whatsapp Messages Python Script

This is a simple script that sends multiple WhatsApp messages using python script. This is used for educational purposes only. Please don't ruin anyone's phone by sending multiple messages.

Demo

Prerequisites

In order to run the python script, your system must have the following programs/packages installed.

Approach

  • First need to clone this respiratory.
  • Open web Whatsapp in any browser. link: https://web.whatsapp.com/
  • Run python script script.py using py script.py in the terminal.
  • The script will ask you to enter the number of messages and message content in the terminal, after entered both information successfully you keep the cursor in the message bar in the web Whatsapp application to whom you want to send the message.
  • The script will sleep for 3 seconds and then begin to send messages continuously until and unless messages not send all.

Note: Please use just use for fun not to ruin anyone's phone.

Legal

  • This code is in no way affiliated with, authorized, maintained, sponsored or endorsed by WhatsApp or any of its affiliates or subsidiaries. This is an independent and unofficial software. Use at your own risk. Commercial use of this code/repo is strictly prohibited.

Code

import pyautogui
import time

number_of_messages = int(input('Enter number of messages: '))
message_content = input('Enter message content: ')

time.sleep(3)

for num in range(number_of_messages):
    pyautogui.write(message_content)
    pyautogui.press('enter')

print('Script executed successfully')

Video on youtube: https://youtu.be/tPm7Zvn4pFY