I want to send a WhatsApp message every 24 hours automatically using python, with the pywhatkit library. Here is the code I got so far:
JavaScript
x
4
1
import pywhatkit
2
3
pywhatkit.sendwhatmsg("+91xxxxxxxxxx", "Hello, world", 16, 00)
4
Send every 24 hours adaptation:
JavaScript
1
7
1
import pywhatkit
2
import time
3
4
while True:
5
time.sleep(86400) #86400 seconds in a day
6
pywhatkit.sendwhatmsg("+91xxxxxxxxxx","Hello, world", 16, 00)
7
I would have to keep my PC on 24/7 for this to work. Is there any better way of doing it?