Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 8600051

Browse files
committed
Added a new Message Spam Project
1 parent bcbe2bd commit 8600051

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
1+
# Import necessary libraries
12
import random
23
import pyautogui as pg
34
import webbrowser as wb
45
import time
56

7+
# Define the WhatsApp Web URL
68
web_url = "https://web.whatsapp.com"
9+
10+
# Open the web browser to the WhatsApp Web URL
711
wb.open(web_url)
812

13+
# Wait for 10 seconds to allow the user to log in by scanning the QR code
914
time.sleep(10)
1015

16+
# List of messages to send
1117
messages = ('Hello', 'Hey', 'Good Morning')
1218

19+
# Send 10 random messages
1320
for _ in range(10):
21+
# Choose a random message from the list
1422
message = random.choice(messages)
1523

24+
# Type and send the message using PyAutoGUI
1625
pg.write(message)
1726
pg.press('enter')
1827

28+
# Pause for a random duration between 1 to 3 seconds
1929
time.sleep(random.uniform(1, 3))

0 commit comments

Comments
 (0)