Make Spam bot in Python in just 6 lines

1 Hello ?
In this post I will show you how to make simple spam bot in Python in just 6 lines of code.

BTW you can watch video tutorial here:

So let’s Start ▶️

First we need to install Pysimplegui library, we can do it by runni…


This content originally appeared on DEV Community and was authored by VECTOR3Studio

1 Hello ?
In this post I will show you how to make simple spam bot in Python in just 6 lines of code.

BTW you can watch video tutorial here:

So let's Start ▶️

First we need to install Pysimplegui library, we can do it by running this command

 pip install pysimplegui 

Next, we need to import pysimplegui and time library. We can use this code

import pysimplegui, time

Now let's make a program for spamming.
First we need add a timer, because you will need some time to go to Instagram or something.
Then we need ad a whole loop for the spamming functionality
Here is the code:

time.sleep(5) #delay for 5 sec
while True: #endless loop
  pyautogui.write("heyy")
  pyautogui.press("enter")
  time.sleep(0.2)

That's the whole code you need to Spam your friend.

Thanks for Reading this post. I hope you learned something new. See you ?


This content originally appeared on DEV Community and was authored by VECTOR3Studio


Print Share Comment Cite Upload Translate Updates
APA

VECTOR3Studio | Sciencx (2021-09-20T09:22:03+00:00) Make Spam bot in Python in just 6 lines. Retrieved from https://www.scien.cx/2021/09/20/make-spam-bot-in-python-in-just-6-lines/

MLA
" » Make Spam bot in Python in just 6 lines." VECTOR3Studio | Sciencx - Monday September 20, 2021, https://www.scien.cx/2021/09/20/make-spam-bot-in-python-in-just-6-lines/
HARVARD
VECTOR3Studio | Sciencx Monday September 20, 2021 » Make Spam bot in Python in just 6 lines., viewed ,<https://www.scien.cx/2021/09/20/make-spam-bot-in-python-in-just-6-lines/>
VANCOUVER
VECTOR3Studio | Sciencx - » Make Spam bot in Python in just 6 lines. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/09/20/make-spam-bot-in-python-in-just-6-lines/
CHICAGO
" » Make Spam bot in Python in just 6 lines." VECTOR3Studio | Sciencx - Accessed . https://www.scien.cx/2021/09/20/make-spam-bot-in-python-in-just-6-lines/
IEEE
" » Make Spam bot in Python in just 6 lines." VECTOR3Studio | Sciencx [Online]. Available: https://www.scien.cx/2021/09/20/make-spam-bot-in-python-in-just-6-lines/. [Accessed: ]
rf:citation
» Make Spam bot in Python in just 6 lines | VECTOR3Studio | Sciencx | https://www.scien.cx/2021/09/20/make-spam-bot-in-python-in-just-6-lines/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.