GEEKSFORGEEKS
Spam bot using PyAutoGUI
PyAutoGUI is a Python module that helps us automate the key presses and mouse clicks programmatically. In this article we will learn to develop a spam bot using PyAutoGUI.
Spamming – Refers to sending unsolicited messages to large number of systems over the internet.
This mini-project can be used for many real-life applications like:
Remind your friends or relatives to do a particular task after every
import pyautogui, time, datetime
time.sleep(2)
while True:
# to display the time at which the message is sent
print(datetime.datetime.now())
pyautogui.typewrite("Reminder: Drink water!")
pyautogui.press("enter")
time.sleep(31)
print(datetime.datetime.now())
pyautogui.typewrite("Reminder: Take medicine!")
pyautogui.press("enter")
time.sleep(31)
print(datetime.datetime.now())
pyautogui.typewrite("Reminder: Take the dog for a walk!")
pyautogui.press("enter")
time.sleep(31)
print(datetime.datetime.now())
pyautogui.typewrite("Reminder: Drink water!")
pyautogui.press("enter")
time.sleep(31)
print(datetime.datetime.now())
pyautogui.typewrite("Reminder: Drink water!")
pyautogui.press("enter")
time.sleep(31)
GEEKSFORGEEKS Spam bot using PyAutoGUI PyAutoGUI is a Python module that helps us automate the key presses and mouse clicks programmatically. In this article we will learn to develop a spam bot using PyAutoGUI.
Spamming – Refers to sending unsolicited messages to large number of systems over the internet.
This mini-project can be used for many real-life applications like:
Remind your friends or relatives to do a particular task after every
import pyautogui, time, datetime
time.sleep(2)
while True: