My Channel :
/ @mr.manloop7975
Java Setup : • How To Install Apache NetBeans IDE | Open...
One by Wacom : • One by Wacom | Unboxing | Part-1 | Mr.Manloop
We can automate WhatsApp to send messages by running a python script. In this tutorial, we will learn the simplest way of doing so using the pywhatkit module which utilizes the web.whatsapp.com webpage to automate message sending to any number on WhatsApp.
Whatsapp automation using Python
Now let's setup pywhatkit module and write the code to send WhatsApp message automatically.
Then call pywhatkit.add_driver_path(path) and pass the copied path as an argument, if the path is valid, a black window along with chrome will open and close.
Now call pywhatkit.load_QRcode() function and scan the QR code.
After following the above steps, you do not have to do anything, just run the final script to send whatsapp message.
To see the setup steps, you can use the pywhatkit.manual() method in your python script.
The code is super simple,
import pywhatkit as kit
kit.sendwhatmsg("+919*********", "Mr.Manloop!", 18, 21)
In the above code, we have specified the mobile number on which we want to send the message, then the message, and then the time at which the message has to be sent. This module follows the 24 hrs time format, hence the time 18:21 is 06:21 PM.
In 702 seconds web.whatsapp.com will open and after 60 seconds message will be delivered
Also, you should provide atleast 4-5 minutes future time from the current time while running the script, because if you will set the time 1-2 minute from current time, then the module will give error.
Conclusion:
So that's it. You can use this script to automate WhatsApp to send Birthday wishes to your friends and family, to send daily morning message to your parents or use it for some business idea. As developers, we should look for ways to minimize our efforts and maximize the output.
If you face any issue while running this script, do share it with us in the comment section below..
#python
#pythontutorial
#pythontutorialforbeginners
#packagemodule
#pywhatkit
#datascience
#whatsapp
#API
#mr_manloop
Kindly Support our Channel ..................
Auf dieser Seite können Sie das Online-Video HOW TO SEND WHATSAPP MSG | USING PYTHON 😎😎. mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Mr.ManLoop 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 248 Mal angesehen und es wurde von 24 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!