Skip to content

Commit e3aa000

Browse files
committed
Added WhatsApp Automation folder under AutomationScripts
1 parent d54a59c commit e3aa000

File tree

6 files changed

+64
-0
lines changed

6 files changed

+64
-0
lines changed
Loading
Loading
Loading
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## WhatsApp Automation using python
2+
3+
- This is a script which is used for sending an automated WhatsApp message.
4+
5+
### About the Script
6+
7+
It takes 4 parameters as input:
8+
9+
- phone number of the receiver
10+
- message to be sent to the receiver
11+
- Time at which the message should be sent in hours
12+
- Time at which the message should be sent in minutes
13+
14+
### Setup instructions
15+
16+
1. Install Python 3.x (recommended) from <a href="https://www.python.org/downloads/">here</a>
17+
2. Download this repository as zip and extract.
18+
3. Use Python IDLE or PyCharm to run the program.
19+
4. Run the code and start taking input as Row and Column.<br>
20+
5. Have fun!!
21+
22+
### Screenshot of the Output
23+
24+
![Output Image for message sent successfully](Images/output1.png)
25+
26+
### Screenshot for exception caught
27+
28+
![Output Image for exception](Images/output2.png)
29+
30+
### Screenshot of the message in whatsapp
31+
32+
![Message in WhatsApp](Images/whatsapp_output.png)
33+
34+
### Author
35+
36+
[Damarla Venkata Sai Chandana](https://github.com/chandu6111)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Install Python3
2+
Install Python 3.x (recommended) from <a href="https://www.python.org/downloads/">here</a>
3+
4+
### Install pywhatkit
5+
Run the following command in the terminal:
6+
pip install pywhatkit
7+
8+
### Sign in to your Web-WhatsApp account in your browser
9+
10+
Then you can execute the code which is present in whatsapp.py !!
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# importing required modules
2+
import pywhatkit
3+
4+
# asking user for input of number,message and time
5+
phone_number = input(
6+
"Enter the number with country code eg.'+91**********' ,Don't Forget to add the country code with a \"+\" :"
7+
)
8+
message = input("PLease enter the message you want to send to the receiver : ")
9+
time_in_hours = int(
10+
input('Enter the Hour in +12 format e.g : 4pm should be entered as 16: '))
11+
time_in_minutes = int(input('Enter the Minutes : '))
12+
13+
# sending message
14+
try:
15+
pywhatkit.sendwhatmsg(phone_number, message, time_in_hours, time_in_minutes)
16+
print("Message successfully sent!")
17+
except:
18+
print("There is something wrong with the input parameters please check again")

0 commit comments

Comments
 (0)