DEV Community

loading...
Cover image for Beginner Python Projects part 1

Beginner Python Projects part 1

larymak profile image lary mak ・1 min read

In this first post on my preferred python beginner projects I first began by building a WhatsApp Spambot using python.

To get started we will need first have a code editor :
either * pycharm * VScode or * Sublime

  • Next step create a file and give a .py extension
  • Now you will have to install pyautogui: pip install pyautogui
  • After doing the basics you can now write the code below and run it
import pyautogui
import time

count = 0
pyautogui.click(10,5)
while True:
    pyautogui.FAILSAFE=True
    pyautogui.write(f"Hey you there")
    count +=1
    pyautogui.press("ENTER")
    time.sleep(1)
Enter fullscreen mode Exit fullscreen mode

Youtube: WhatsApp Spambot
Github: larymak
Twitter: larymak1

Discussion

pic
Editor guide