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

Commit bcbe2bd

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

3 files changed

Lines changed: 44 additions & 0 deletions

File tree

projects/Message-Spam/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# WhatsApp Random Message Sender
2+
3+
## Usage
4+
5+
1. Install required libraries:
6+
7+
- `pip install -r requirements.txt`
8+
9+
2. Run the script:
10+
```
11+
python mesaage_spam.py
12+
```
13+
14+
3. Follow on-screen instructions to log in to WhatsApp Web.
15+
16+
4. The script will send random messages to the current chat.
17+
18+
## Customization
19+
20+
- Edit the `messages` variable to change the list of messages to send.
21+
- Adjust the sleep interval for message timing..
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import random
2+
import pyautogui as pg
3+
import webbrowser as wb
4+
import time
5+
6+
web_url = "https://web.whatsapp.com"
7+
wb.open(web_url)
8+
9+
time.sleep(10)
10+
11+
messages = ('Hello', 'Hey', 'Good Morning')
12+
13+
for _ in range(10):
14+
message = random.choice(messages)
15+
16+
pg.write(message)
17+
pg.press('enter')
18+
19+
time.sleep(random.uniform(1, 3))
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
random
2+
pyautogui
3+
webbrowser
4+
time

0 commit comments

Comments
 (0)