How to make a Spam Bot in 8 lines of code! | Free Coding Tutorial

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 158

  • @CodeoftheFuture
    @CodeoftheFuture  3 роки тому +8

    🚨IMPORTANT NOTE - HOW TO FAIL SAFE🚨:
    Please watch this 3 minute video on how to abort python and fail-safe in PyAutoGUI. This will stop the file from running.
    ua-cam.com/video/eAIJ-hYzYeo/v-deo.html

  • @NovaCharlie7
    @NovaCharlie7 Рік тому +2

    Hello there, first things first: You are making great tutorials and i have learned quite a bit so far and i hope you keep python stuff coming.
    Second thing: you dont need to have the file you want to access via your script in the same folder, although it makes it a lot less likely to get confused. If you are working with files in other directories you just need to put the path to the file everywhere you want to access this file, so by using the full path like c:\users\folder\file you can access any file on the computer without bothering to may create duplicates

  • @syedabrar-8215
    @syedabrar-8215 4 роки тому +7

    Congrats on 1k subscribers 👏

  • @wissemkerkeni4343
    @wissemkerkeni4343 4 роки тому +2

    That was awesome!. I'm excited to learn facial recognition and artificial intelligence in general with python! happy new year and good luck for next video

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому +1

      Thank you so much!☺️ happy new year to you too!

  • @santiagoramirez1949
    @santiagoramirez1949 3 роки тому +3

    Bee Movie Script - Dialogue Transcript
    According to all known laws
    of aviation,
    there is no way a bee
    should be able to fly.
    Its wings are too small to get
    its fat little body off the ground.
    The bee, of course, flies anyway
    because bees don't care
    what humans think is impossible.
    Yellow, black. Yellow, black.
    Yellow, black. Yellow, black.
    Ooh, black and yellow!
    Let's shake it up a little.
    Barry! Breakfast is ready!
    Ooming!
    Hang on a second.
    Hello?
    - Barry?
    - Adam?
    - Oan you believe this is happening?
    - I can't. I'll pick you up.
    oh boi it worked

  • @punisherioi
    @punisherioi 4 роки тому +8

    OMG, This is Awesome!😂I had so much fun!

  • @arjung5817
    @arjung5817 3 роки тому +3

    I think this is where the whole 'Binod' thing started. 😂😂😂

  • @Iammrbt2
    @Iammrbt2 2 роки тому

    This is great! Another fun RPA python idea is to use Selenium and pyautogui together!
    You should explore this in reverse by using Power Automate Desktop or UiPath that are RPA solutions that you can include Python or JS inside.

  • @mohammedabudharghifari
    @mohammedabudharghifari 4 роки тому +1

    I've seen your Google tricks videos on reel from there I straight aways came to this place

  • @rohitbanyal
    @rohitbanyal 4 роки тому +1

    You are very talented New sub❤

  • @MegaScarydog
    @MegaScarydog 4 роки тому

    Just found these on Instagram and following on UA-cam now. Am new to coding and your vids are great

  • @shxxxam.thakur
    @shxxxam.thakur 4 роки тому +2

    Loved it 🤩👌🏻

  • @HcmX
    @HcmX 4 роки тому +1

    Interesting. Python is really powerful.. Thank you :) !

  • @syedabrar-8215
    @syedabrar-8215 4 роки тому +2

    Nice work 👏

  • @ugonnaokoro7555
    @ugonnaokoro7555 3 роки тому

    Gold! Thank you so much :)

  • @pjsparks4443
    @pjsparks4443 4 роки тому +2

    I am going to try this for sure

  • @Yogger
    @Yogger 3 роки тому +1

    How do i get pyautogui in pycharm on windows? sorry, im new to this.

  • @rahultatikonda
    @rahultatikonda 3 роки тому

    great video to spam on youtube live chat and to get in the sight of nightbots

  • @akshaygaidhane8212
    @akshaygaidhane8212 4 роки тому +1

    Really loved it to know about py auto GUI

  • @ishanmittal7015
    @ishanmittal7015 3 роки тому +1

    Can i make this to do at scheduled time??

  • @BharathTrades
    @BharathTrades 4 роки тому +1

    Love from India ♥️ really asome 🥳🥳🥳 a fresh start ahead 💗💫in 2021

  • @basantak88
    @basantak88 4 роки тому +1

    Thank you for sharing the knowledge!!! Love your work ❤️❤️❤️

  • @shubhamdandekar20
    @shubhamdandekar20 4 роки тому

    You are one beautiful coder.😊

  • @jaisonpjoy8834
    @jaisonpjoy8834 4 роки тому

    Wow..it worked
    Thank you ☺️

  • @bu1zz
    @bu1zz 3 роки тому

    When i press run, it runs for .005 seconds and then stops right away

  • @jeromejob380
    @jeromejob380 2 роки тому +1

    Hlo i liked this video but I'm a windows user can u pls redo this video fully in a windows laptop.... Also pls tell how to setup pyautogui in pycharm I'm having a hard time doing it.... Hope u will help....

  • @Pavle_Borovcanin11
    @Pavle_Borovcanin11 2 роки тому

    i have a little problem i cant install pyautogui
    its not showing pycharm option for me:(

  • @sh4dylol
    @sh4dylol 3 роки тому

    how do i get the automated_messaging bit in the top right corner? (i have no clue about coding at all, this is very new to me). It says "main" for me in the top corner and when I run the script, it sends: {
    tf1\ansi\ansicpg1252\cocoartf2580
    \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
    {\colortbl;
    ed255\green255\blue255;}
    {*\expandedcolortbl;;}
    and so on. I don't know how to fix this😭

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      You're reading an RTF (Rich Text Format) document! For this to work you need your text file as .txt as I explained in the earlier part of the video. I think that should solve your problem! :)

  • @kahepe6013
    @kahepe6013 3 роки тому

    When i run this it does nothing. Im using Windows and Python shows me no error. Can someone help me?

  • @alwinsonnetjoseph6927
    @alwinsonnetjoseph6927 4 роки тому +1

    Hi am interested in coding but I don't know how could I start

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому +1

      If you go onto my playlists there is a playlist called 'python for beginners' which teaches you the programming language python from the very beginning!! Hope it helps :)

    • @alwinsonnetjoseph6927
      @alwinsonnetjoseph6927 4 роки тому

      @@CodeoftheFuture thank you

  • @evelyn7377
    @evelyn7377 4 роки тому +1

    I can't install package time and pyautogui in window. can you help me?
    btw, what you install this PyCharm in your mac? Community or Professional?

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому +2

      You might have to pip install to install the modules! Or google how to install modules in windows! I installed PyCharm community ☺️

    • @evelyn7377
      @evelyn7377 4 роки тому

      @@CodeoftheFuture Thank you very much... I will try🥳❤

  • @shreyasrai_
    @shreyasrai_ 3 роки тому

    At first it works well but when i restart my pc it stoped working.
    'charmap' codec can't decode byte 0x9d in position 15: character maps to
    File "D:\New folder\spambot", line 7, in SendMessage
    for each_line in text:
    File "D:\New folder\spambot", line 12, in
    SendMessage()

  • @EB-nn8wx
    @EB-nn8wx 4 роки тому

    I'm on windows and i have installed the pyautogui package onto my computer but it won't import to vscode
    it says no module called pyautogui

  • @anishafernando65
    @anishafernando65 2 роки тому

    thank you!

  • @raefk8990
    @raefk8990 3 роки тому

    How do you put a timer between the messages?

  • @xxblazer
    @xxblazer 3 роки тому

    if anyone can help i will apricate it every time I press run it just goes for a second and a message saying that process finished with exit code 0 and it does not send anything

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      I think you need to grant access to your laptop for it to work! :)

  • @emilisstrunkevicius1908
    @emilisstrunkevicius1908 3 роки тому

    i am on windows and i dont know how to inport pyautogui

  • @jatinmadani928
    @jatinmadani928 3 роки тому

    this is not working for me it shows
    Traceback (most recent call last):
    can someone please help

  • @Christopher_Station
    @Christopher_Station 3 роки тому

    How can I do following spam bot?

  • @Pierce-zp5dr
    @Pierce-zp5dr 3 роки тому

    When I run it, it automatically finishes the process can anyone help me?

  • @MyneBestOfHardStyle
    @MyneBestOfHardStyle 3 роки тому

    hi, instead of using copy-paste from a script, can't you use/ load a movie subtitle file format directly (like *.srt) and use the embebed timetag as a time to send the message ? instead of just a same time interval, it would be an almost random message with a full subtitles of any movie. :D

  • @MMT--Games
    @MMT--Games 3 роки тому +1

    if you are still alive, i want to ask 2 questions:
    question 1: how do you send the whole thing at once. not like each line, the whole thing.
    question 2: how do you make it loop
    i would be so happy if you answer

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      I'll look into it and create a video explaining how you can do both of those things! :)

    • @MMT--Games
      @MMT--Games 3 роки тому

      @@CodeoftheFuture ok, thank you very much! :)

  • @krisfarrugia6490
    @krisfarrugia6490 4 роки тому +1

    I tried this on messenger and each line was sent twice or else the whole text was sent in one message as many times as the number of lines read in the file hahaha maybe it's an issue with messenger (it worked on notepad), super cool though!

  • @lifeisbeautiful1160
    @lifeisbeautiful1160 4 роки тому

    will this code run without time module coz my time module is not installing occur with an erro
    r

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому

      it will but the typing will occur straight away! You'll just have to swipe really fast😂

  • @mohansai1130
    @mohansai1130 4 роки тому

    Hy how can we do this on andriod phones wt apps to install and how can we use textedit on phones, can u explain?

  • @vinusuhas4978
    @vinusuhas4978 3 роки тому

    Can u create a bot which can send messages based on response and using what's app web

  • @aryan7tiwary
    @aryan7tiwary 3 роки тому

    {Man} Once upon a time there was a lovely princess.
    But she had an enchantment upon her of a fearful sort which could only
    be broken by love's first kiss.
    She was locked away in a castle guarded by a terrible fire-breathing
    dragon.
    Many brave knigts had attempted to free her from this dreadful prison,
    but non prevailed.
    She waited in the dragon's keep in the highest room of the tallest
    tower for her true love and true love's first kiss.
    {Laughing}
    Like that's ever gonna happen.
    {Paper Rusting, Toilet Flushes}
    What a load of -
    Somebody once told me the world is gona rollme
    I ain't the sharpest tol in the shed
    She was lookin' kind of dumb with herfinger and her thumb
    In the shape of an "L" on her forehead
    The years start comin' and they don't stop comin'
    Fed to the rules and hit the ground runnin'
    Didn't make sense not to live for fun
    Your brain gets smart but your head gets dumb
    So much to do so much to see
    So what's wrong with takin' the backstreets
    You'l never know if you don't go
    You'l never shine if you don't glow
    Hey, now You're an all-star
    Get your game on, go play
    Hey, now You're a rock star
    Get the show on, get paid
    And all that glitters is gold
    Only shootin' stars break the mold
    It's a cool place and they say it gets colder
    You're bundled up now but wait till you get older
    But he meteor men beg to differ
    Judging by the hole in the satellite picture
    The ice we skate is getin' pretty thin
    The water's getting warm so you might as well swim
    My world's on fire
    How 'bout yours
    That's the way I like it and I'll never get bored
    Hey, now, you're an al-star

  • @tanmaymishra974
    @tanmaymishra974 3 роки тому

    Op video love it
    New subscriber
    My friends soumil malik gave me this link

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      Thank you so much!! Soumil Malik has been my supporter since day 1!! Appreciate your support so much💛

  • @kresimirrajic6822
    @kresimirrajic6822 3 роки тому

    Followed your instructions ,and still doesn't work . I gave the permission and everything . Process is finished but in 1 sec with exit code 0

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      It might be that you haven’t given your computer access to use your screen. It’s worth checking that out!

    • @kresimirrajic6822
      @kresimirrajic6822 3 роки тому

      @@CodeoftheFuture been there done that :) thanks for quick response , now it types the text but doesnt send it word for word just writes the whole txt and then sends

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      @@kresimirrajic6822 I recovered the spam bot in this short 3 minute video, this might help! Also remember to have line breaks in your text :) ua-cam.com/video/eAIJ-hYzYeo/v-deo.html

  • @pjsparks4443
    @pjsparks4443 4 роки тому +1

    It worked mam and now I got blocked from two of my frnds😂😂😂

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому +2

      Hahaha I did say to use it responsibly!🤪😂

  • @xomartinox3492
    @xomartinox3492 3 роки тому

    very cool :)

  • @PriyanshuGupta-st2xk
    @PriyanshuGupta-st2xk 4 роки тому

    U are just awesome🤩🤩😍😍

  • @mohammedaslamrcommerce6103
    @mohammedaslamrcommerce6103 4 роки тому

    how should i create text file in windows

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому +1

      This might help!
      www.computerhope.com/issues/ch001359.htm

  • @loveyourself9701
    @loveyourself9701 3 роки тому

    thank you so much

  • @jaymoh3809
    @jaymoh3809 3 роки тому

    Thanks alot

  • @zhaotinghu8951
    @zhaotinghu8951 3 роки тому

    Me looking at everything carefully but still not getting what I got wrong

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      Is there any way I could help? A lot of people don't grant access to their computer which means pyautogui can't access your screen to type so that could be it! You can always copy the code from my github here:
      github.com/code-of-the-future/Automated-Messaging

    • @zhaotinghu8951
      @zhaotinghu8951 3 роки тому

      @@CodeoftheFuture i couldnt download the modules of time and sleep

  • @profgallaugher
    @profgallaugher 7 місяців тому

    Fun!

  • @pradeepkrishnan2004
    @pradeepkrishnan2004 3 роки тому

    cool!

  • @Elxuryy
    @Elxuryy 3 роки тому +1

    it keeps saying "Error occurred when installing package" when i try to install Time. someone please help.
    Edit: Nevermind i apparently had it installed already. Great Vid 👍

  • @mmaarrtthhaa
    @mmaarrtthhaa 4 роки тому

    Literally Love It❤️. But How Can We Create A Text File In Windows? Can we Use Notepad For That Stuff?

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому

      Thank you so much!! This article might help:
      www.groovypost.com/howto/quickly-create-new-blank-text-file-windows-mac-linux/#:~:text=Microsoft%20provides%20a%20way%20of,default%20name%2C%20New%20Text%20Document.

    • @mmaarrtthhaa
      @mmaarrtthhaa 4 роки тому

      @@CodeoftheFuture Sure I'll Check it out. Btw thanks Ellie

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому +1

      @@mmaarrtthhaa no problem at all, happy to help! :)

  • @cezar1g
    @cezar1g 3 роки тому

    thank you, i would like to learn how to make comments bot for any website that i choose! i would be very thankful if anyone can give me idea

  • @pranavsuryakantsatardekar5333
    @pranavsuryakantsatardekar5333 4 роки тому

    Will it work on windows??

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому +1

      Yes! You’ll just have to use a different feature than iMessage! Facebook or WhatsApp are great 🤪

    • @pranavsuryakantsatardekar5333
      @pranavsuryakantsatardekar5333 4 роки тому

      @@CodeoftheFuture it is not working... I followed every step, all coding inputs are same but when I run and move on the whatsapp or facebook, nothing happen. Please tell me what can I do..

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому

      @@pranavsuryakantsatardekar5333 It might be allowing access to your screen. Have a look in your privacy settings and see if PyCharm has access to your screen. I had the same problem to begin with! Google how to give PyCharm access to your screen and follow the steps and that should work!

    • @raghav869
      @raghav869 4 роки тому

      @@CodeoftheFuture i can not find any such settings

  • @raghav869
    @raghav869 4 роки тому

    Please tell how to do the same on Whatsapp ??

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому +1

      Of course! When you run the code in this tutorial, you will click where you want the text to start writing. So I've used an example with both iMessage and notes! All you have to do is log into your WhatsApp account, open the message to the person you want to prank. Then run the python code and move onto the screen with your WhatsApp on :) hope that makes sense!!

    • @raghav869
      @raghav869 4 роки тому +1

      @@CodeoftheFuture Thank you so much .. I will try

  • @PriyanshuGupta-st2xk
    @PriyanshuGupta-st2xk 4 роки тому

    can u just give an idea how to make the program exit in middle of the text bot working so that my mac doest go bananas😂

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому

      Hahaha I had the same issue! I found the best solution was having the app you're using to spam someone and pycharm next to each other on your desktop. Then you can hovver over the stop button in pycharm and click twice really quickly to stop it. You might end up with some of the text file written in your pycharm code but if you do it quickly enough it'll only be a couple of words! Then just delete those words from the python file so it's ready to run again. Either that or when the python logo pops up on your dashboard when the program is running, you can left click and click force quit! They were the most efficient ways for me anyway!! :)

    • @PriyanshuGupta-st2xk
      @PriyanshuGupta-st2xk 4 роки тому

      @@CodeoftheFuture Ya i did the same by quitting the python from docks!
      btw thnx and if i get any way of stopping i will definately reach out to u coz if u click the wrong thing then 😂

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому

      @@PriyanshuGupta-st2xk awesome! Hahha i'll also look for a solution in the meantime! 😂

  • @BharathTrades
    @BharathTrades 4 роки тому

    Any one can say that how to give access in Windows 😒plz

  • @user-ke3hh4fv3k
    @user-ke3hh4fv3k 3 роки тому

    When I search for the libraries the computer says "nothing to show"
    ahh needed to deinstall anaconda

  • @subalakshminaicker1254
    @subalakshminaicker1254 4 роки тому +3

    It's amazing...... I tried this on my python...... It's showing FileNotFoundError....... Can you please tell me where I should save the text file

    • @CodeoftheFuture
      @CodeoftheFuture  4 роки тому +1

      You need to save the text file in the same folder as the python file!! That way it will work :)

  • @the_randhir_singh6914
    @the_randhir_singh6914 2 роки тому

    cool

  • @dylanmanuel1359
    @dylanmanuel1359 3 роки тому

    CAN U HELP ME IN CODING😭😭😭

  • @reesehuff
    @reesehuff 4 роки тому

    saw this on insta

  • @jtes5604
    @jtes5604 3 роки тому

    The spam bot were go and listen a bought to change the figure above show u ain't go had to engage with yt engine light and conclusion be attack to hack

    • @CodeoftheFuture
      @CodeoftheFuture  3 роки тому

      I’m not quite sure I understand what you mean?

  • @troy5881
    @troy5881 3 роки тому

    THEY WATCH

  • @HarshGupta-hb7ih
    @HarshGupta-hb7ih 4 роки тому

    I'm not able to install the pyautogui... I've sent you the screenshot of it to your Insta please check it and if possible tell how can i get it..no hurry though.. Ik u must be very busy yourself..
    Great Tutorials by the way..
    Please keep up the good work☺️☺️

  • @h1tchify
    @h1tchify 3 роки тому

    hat was amazing but i want to do it with more speed and with spam bots in a chatroom for example in chatkaro.in

  • @srs6128
    @srs6128 3 роки тому

    spammer is good

  • @gamerandrew-is2cd
    @gamerandrew-is2cd 3 роки тому

    i am trolling my freind

  • @adharshgowda7818
    @adharshgowda7818 4 роки тому

    Hi i am from India help me

  • @MrBurgles
    @MrBurgles Рік тому

    Ayo

  • @soolaxx
    @soolaxx 3 роки тому

    thanks more one sub more one like

  • @sawankumar2088
    @sawankumar2088 4 роки тому

    You are so beautiful

  • @anishafernando65
    @anishafernando65 2 роки тому

    ds

  • @imstoopidright
    @imstoopidright 3 роки тому +1

    cool!

  • @TheStalkerofOhio
    @TheStalkerofOhio Рік тому

    thanks a lot

  • @troy5881
    @troy5881 3 роки тому

    THEY WATCH

  • @troy5881
    @troy5881 3 роки тому

    THEY WATCH