Python Twitter Bot That Auto Likes/Retweets Tutorial

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 24. 01. 2020
  • Purchase the full course here!
    developedbyed.com/
    In todays episode we are going to be using python to create a twitter bot that will automatically retweet and auto like posts based on a keyword.
    We will be exploring the python library called tweepy and also setting up a twitter developer api key.
    Full Code Here - / 33437352
    🛮 Follow me on:
    Twitch: / developedbyed
    Twitter: / developedbyed
    Instagram: / developedbyed
    Github: github.com/developedbyed/
    Microphones I Use
    Audio-Technica AT2020 - geni.us/Re78 (Amazon)
    Deity V-Mic D3 Pro - geni.us/y0HjQbz (Amazon)
    BEHRINGER Audio Interface - geni.us/AcbCpd9 (Amazon)
    Camera Gear
    Fujifilm X-T3 - geni.us/7IM1 (Amazon)
    Fujinon XF18-55mmF2.8-4 - geni.us/sztaN (Amazon)
    PC Specs
    Kingston SQ500S37/480G 480GB - geni.us/s7HWm (Amazon)
    Gigabyte GeForce RTX 2070 - geni.us/uRw71gN (Amazon)
    AMD Ryzen 7 2700X - geni.us/NaBSC (Amazon)
    Corsair Vengeance LPX 16GB - geni.us/JDqK1KK (Amazon)
    ASRock B450M PRO4 - geni.us/YAtI (Amazon)
    DeepCool ATX Mid Tower - geni.us/U8xJY (Amazon)
    Dell Ultrasharp U2718Q 27-Inch 4K - geni.us/kXHE (Amazon)
    Dell Ultra Sharp LED-Lit Monitor 25 2k - geni.us/bilekX (Amazon)
    Logitech G305 - geni.us/PIjyn (Amazon)
    Logitech MX Keys Advanced - geni.us/YBsCVX0 (Amazon)
    DISCLAIMERS:
    I am a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
    #python #programming
  • Věda a technologie

Komentáƙe • 259

  • @noobcoding7279
    @noobcoding7279 Pƙed 4 lety +5

    Bro, only discovered your channel this weekend. Love it, and you've helped inspire me to become better at Python myself. Cheers mate!

  • @MrJordanWC
    @MrJordanWC Pƙed 4 lety +3

    Aaah I'm so happy you are updating this, thanks for making learning coding seem so effortless, I appreciate you!

  • @murgmir
    @murgmir Pƙed 4 lety +6

    Nice and simple tutorial, Ed!
    For your new channel, I think "Tech Ed" suits you well.

  • @rustambokaev4886
    @rustambokaev4886 Pƙed 4 lety +2

    Dev Ed, I wanna thank for everything you do! Your channel it’s like a breathe of fresh air!

  • @stefanop.6097
    @stefanop.6097 Pƙed 4 lety

    Great video! Keep up the good work buddy! I love your Python tutorials :)

  • @theweebdev
    @theweebdev Pƙed 4 lety

    Wow another great tutorial! Still waiting for Traversy, Web dev simplified, Net ninja Academind and Dev Ed collab. It doesn't need to be programming. Seeing 2 or 3 of you guys together in one video is just going to be awesome.

  • @jiveshwarichinchghare1249
    @jiveshwarichinchghare1249 Pƙed 3 lety +5

    17:34 "Come on! One more for daddy!!!" That is the most hilarious shit on a python tutorial ever.

  • @gilfoyle2211
    @gilfoyle2211 Pƙed 2 lety +2

    Those not able to use the above tutorial, try applying for elevated dev account

  • @kuro2ck
    @kuro2ck Pƙed 3 lety

    PLEASE do a load more python tutorials, you are seriously interesting to watch.

  • @waad5497
    @waad5497 Pƙed 2 lety

    thanks for this great information!
    what color theme are you using for your visual studio app?

  • @tbranc1
    @tbranc1 Pƙed 4 lety +85

    Girlfriend brings snacks while you’re working? Keep her!

    • @coder4life
      @coder4life Pƙed 4 lety +7

      😂😂 every coders dream girlfriend

  • @dracomet2097
    @dracomet2097 Pƙed 4 lety +1

    Question, is the bot linked only to the account handle registered with dev or do you need to make a new handle?

  • @bingugapleki
    @bingugapleki Pƙed 2 lety

    Love that cat background SO MUCH !!

  • @madigor9264
    @madigor9264 Pƙed 4 lety

    Well done!!! Please more video, with more sophisticated tasks

  • @kylebyron7502
    @kylebyron7502 Pƙed rokem

    Thanks for the tutorial! Would there be a way to make the bot retweet a tweet from the stream if and only if it has a particular reply? Or a reply by a particular person?

  • @IsmaelMartinezBeyondTheWall

    Love it dude! Greetings from Central America (Y)

  • @arjaypangilinan1113
    @arjaypangilinan1113 Pƙed 4 lety

    Nice tutorial Dev Ed 😊😊

  • @decentralandgaming2324
    @decentralandgaming2324 Pƙed 2 lety

    Excellent video. Love your style ❀❀

  • @danfcrypto7703
    @danfcrypto7703 Pƙed 2 lety

    great video bro... i was wondering, is it possible to automatically follow an specific user mentioned in a tweet?

  • @TheNerdyDev
    @TheNerdyDev Pƙed 4 lety

    Great stuff, Ed :)

  • @mostmojo
    @mostmojo Pƙed 3 lety

    Fantastic. Really nice way to get started with python and the Twitter API, it's pretty much English and logic, compared to JS xD

  • @daxdmon3297
    @daxdmon3297 Pƙed 4 lety +107

    Look how our Mr. DevEd blushed when his girlfriend arrived!!!

  • @RetroSugar
    @RetroSugar Pƙed 3 lety +2

    I'm trying to follow this tutorial, but tweepy does not install using both pip or pip3. Help?

  • @PRANKOWNAGE
    @PRANKOWNAGE Pƙed 4 lety

    How would you go about retweeting from a list that you created, and not just all of Twitter?

  • @spiritcore1
    @spiritcore1 Pƙed 4 lety

    A proper name for you tech channel would be: Gorgeous Tech

  • @ronit8067
    @ronit8067 Pƙed 4 lety

    can we select which account we can use to like and re tweet? or is it fixed to the dev account username

  • @0xkwizzy
    @0xkwizzy Pƙed rokem

    awesome video! im wondering if ill be able to use this code in a way to refresh one specific users account to like and retweet all their tweets.. A user i follow does 60 second raffles everyday and i always barley miss them and im hoping this will help catch them, any help would be much appreciated, thank you!

  • @Italiafani
    @Italiafani Pƙed 4 lety +2

    Haha, the word for colon in Finnish (kaksoispiste) actually translates to double dot. You're not alone!

    • @Lucsy3012
      @Lucsy3012 Pƙed 4 lety +1

      In german it's also double dot or double point (Doppelpunkt) :D

  • @dynamohack
    @dynamohack Pƙed 4 lety +9

    7:47 ooooooth lol XD

  • @ayoooooo
    @ayoooooo Pƙed 3 lety +1

    How can I automate it to favourite the tweets of the followers of one @ handle?

  • @RVAraghav
    @RVAraghav Pƙed 4 lety

    Hi Ed, Where can we get the wallpapers? Please share the link.

  • @lolcreeper1976
    @lolcreeper1976 Pƙed 3 lety

    Hello i tried doing the steps but when i got an email it said "Thanks for applying for access!
    It looks like your proposed use case may be in violation of one or more sections of the Developer Agreement and Policy, Automation Rules, and/or the Twitter Rules.
    As a next step please review these policies as they relate to your use case. Then, respond to this email with an updated use case that is in full compliance with Twitter policy.
    Thank you for your interest in building on Twitter." What to do?

  • @ONRISEAI
    @ONRISEAI Pƙed 2 lety

    Great video :-)
    I am already running an app under Development to repost articles from my news site. Can i have more than one dev app? The only options i have are staging and production.:-/

  • @kudakwashemachekanyanga4559

    So helpful , have used this in my code

  • @samuelpolimeni4150
    @samuelpolimeni4150 Pƙed 4 lety

    hey man what would you do to circumvent error 429 from app rate limiting on twitter?

  • @YasirBaigOfficial
    @YasirBaigOfficial Pƙed 2 lety

    Can you please let us know, if we want to comment on mentioned hashtag then what should we wrote?? tweet.comment?

  • @AdotobTube
    @AdotobTube Pƙed 4 lety +1

    To your question... favourite == British spelling & favorite == American spelling & yes doing a scheduled tweet video would be good to see. One question, it seems the docs indicate you needed to pass Id to the api.retweet method but in the code I didn’t see u passing the id param??

  • @AdamsOyifi
    @AdamsOyifi Pƙed 4 lety

    More python automation tutorials please...Its so cool.

  • @u3u36
    @u3u36 Pƙed 4 lety

    DevEd and TechEd would be fun 😁

  • @TeamPu1s3
    @TeamPu1s3 Pƙed 3 lety

    hello i am trying to do the code but when i type "import tweepy" the tweepy part just underlines in yellow saying "(module) tweepy Tweepy Twitter API library Import "tweepy" could not be resolvedPylancereportMissingImports" any fixes.

  • @hemathhacker6839
    @hemathhacker6839 Pƙed 4 lety

    What python extension for VSCode that you are using?

  • @farmersharma9608
    @farmersharma9608 Pƙed 2 lety +2

    thanks really enjoyed watching your video, you make it easier to follow for a first time coder, thought i keep getting this message "AttributeError: 'API' object has no attribute 'me'" i'm guessing i need something else instead of "me", but then who would i be??? ok less of the rhyming jokes (such a dad) ...what do i input instead of "user = api.me() "
    thanks in advance...oooops rhyming again

    • @sof96moreno13
      @sof96moreno13 Pƙed rokem

      got same error, do you have the solution to this?

  • @rty0m
    @rty0m Pƙed 3 lety

    Hello, my vsc isn't making any tweepy occurrences and the text remains white. Any ideas why is this happening?

  • @CleverProgrammer
    @CleverProgrammer Pƙed 4 lety +74

    Yo! Reached out to you through email! Hoping we can work on something together 🙏 . Love this content, keep it up đŸš€đŸ”„

    • @kushalchapagain241
      @kushalchapagain241 Pƙed 4 lety

      Hyee why your comment didn't get reply.....i like your video the most😍😍
      Colaboration is gonna be awesome.

    • @jasskaran.singh.cheema
      @jasskaran.singh.cheema Pƙed 4 lety +2

      damn i can only imagine how both of you might bring fire to the python projects collaborating together!

    • @simrandotdev
      @simrandotdev Pƙed 3 lety +6

      @@kushalchapagain241 Because one is an imposter and another is a real programmer. And the imposter has a clever name.

  • @winstondeciar4932
    @winstondeciar4932 Pƙed 3 lety

    Can you retweet the name like for example @NameTestOnly.. from his/her post will just automatically retweet every time he/she posts? Can you do that also

  • @artemisentreri8845
    @artemisentreri8845 Pƙed 3 lety

    Greetings, mate.
    Can you explain me how to make a function that will make @mention my followers at posted/retwitted twit?

  • @prashantpandey645
    @prashantpandey645 Pƙed 4 lety +41

    Let's build auto subs. and hit 1M

  • @rakeshkulkarni2125
    @rakeshkulkarni2125 Pƙed 2 lety

    Is it possible to not use tweepy because it hides all the Oauth mechanism, can you make a video of handling Oauth with venilla python?

  • @sveannnnnnn7578
    @sveannnnnnn7578 Pƙed 2 lety

    hey mate, is it possible for me that have plenty of followers make a website and lotto out to my followers to let them use my twitter , i dont want them to get acces to my password but instead write in a box on a website what they wanna tweet and it automaticly tweet it , without me doing anything , and it goes thru a filter so they dont say bad stuff

  • @punyani775
    @punyani775 Pƙed 3 lety +1

    What about retweeting tweets from a Twitter list you made??

  • @papacrypto7708
    @papacrypto7708 Pƙed 3 lety

    why when i write "$ pip instal tweepy " .. comes out erorr " the term $ is not recognized as the name of a cmdlet ..... etc" ???

  • @AhmedHassan-nz9xk
    @AhmedHassan-nz9xk Pƙed 4 lety

    Which font are you using?

  • @revkasomethingsomething9735
    @revkasomethingsomething9735 Pƙed 3 lety +1

    I swear I heard " Come on one more fur daddy." around 17:37 LMAO

  • @owl5496
    @owl5496 Pƙed 4 lety

    can you do a full website tutorial with backend and payment gateway and publishing it

  • @virajbagga5923
    @virajbagga5923 Pƙed 2 lety

    How do we end the code? I am getting a "Expected an indented block at break" Error.

  • @swing-o-gram
    @swing-o-gram Pƙed 4 lety +1

    Great stuff. Was able to follow along and get it working. I tried to make it search for 2(!) search terms and just put them in like such "for tweet in tweepy.Cursor(api.search, search, search2).items(nrTweets)", but that didn't work. Any idea how to achieve that?

    • @ayushshahh
      @ayushshahh Pƙed 2 lety +2

      Just keep all search terms like this, add as many as you want
      search = ["Python", "Twitter", "#javascript"]
      for tweet in tweepy.Cursor(api.search, search).items(nrTweets)

  • @Rico220990
    @Rico220990 Pƙed 4 lety

    Hei Ed, why dont U clean the terminal when U are running code again?
    It's my suggestion

  • @RufioAnimeSeries
    @RufioAnimeSeries Pƙed 4 lety

    can someone tell why i have errors of "unknown word" whem im literally im copy pasting

  • @LOONACORE
    @LOONACORE Pƙed 3 lety

    Got an error.
    TypeError: __init__() got an unexpected keyword argument 'wait_on_rate_limit_notif'
    Traceback (most recent call last):
    File "twitter.py", line 8, in
    api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notif=True)
    TypeError: __init__() got an unexpected keyword argument 'wait_on_rate_limit_notif'
    Has the notification depreciated?

  • @tanmantacomama8851
    @tanmantacomama8851 Pƙed 4 lety

    how could i change it for a user instead of a keyword?

  • @APX095
    @APX095 Pƙed 4 lety

    Where can i found that wallpaper? :)

  • @aayushgoyal6357
    @aayushgoyal6357 Pƙed 3 lety

    how can i do it only for a particular user i mean like and retweet only from a particular user

  • @SuperSurendraverma
    @SuperSurendraverma Pƙed 4 lety

    I literally barely subscribe channels but I can't stop to subscribe you

  • @sergioa1113
    @sergioa1113 Pƙed 4 lety

    What page do you look at the code?

  • @bursheyash2
    @bursheyash2 Pƙed 4 lety

    Is .set_access_token a inbuilt function in Python?

  • @jazjazzzy112
    @jazjazzzy112 Pƙed 2 lety

    do i need to download that tweepy thing or what pls im new to this

  • @jerickalegarbes6906
    @jerickalegarbes6906 Pƙed 4 lety

    would this work with other IDEs?

  • @jodx
    @jodx Pƙed 4 lety +2

    Can you make a tutorial on python for a Twitter boy that auto replies to certain users?

  • @niyaziok5507
    @niyaziok5507 Pƙed 4 lety

    I opened a new twitter account for development with the new email address. I didn' get the approval from twitter. I did what ı see in this video and ı got reject. Can you help me about this ???. I got this message "Thank you for your interest in the Twitter developer platform. Based on our review of your use case, we are unable to approve your developer application at this time."

  • @cajoreturnz8351
    @cajoreturnz8351 Pƙed 4 lety

    it says " File "twitter.py", line 21
    except StopIteration
    ^
    SyntaxError: invalid syntax"
    does someone know how to fix this?

  • @josepinto1561
    @josepinto1561 Pƙed 3 lety

    (Windows 10) I'm having problems with tweepy. I can do the instalattion with pip install and with pip3 install but in weither case when I try to import it says ImportError: No module named tweepy. Any idea of what mith be the problem?

  • @peteropere5669
    @peteropere5669 Pƙed 2 lety

    What's the theme of your vscode??

  • @r3ckz858
    @r3ckz858 Pƙed 3 lety

    How do i make the bot like and retweet the same tweet?

  • @andrewk71
    @andrewk71 Pƙed 4 lety +3

    16:01
    Favorite: American English
    Favourite: UK English

  • @jessicausa89
    @jessicausa89 Pƙed 2 lety

    can we use this for opensea ? favorite like bot ?

  • @timska5628
    @timska5628 Pƙed 4 lety +5

    pls make an advanced tut about web scraping with puppeteer

    • @halfword
      @halfword Pƙed 3 lety +1

      try beautifulsoup4

  • @imyasharya
    @imyasharya Pƙed 4 lety +1

    Favorite is the American English variant of Favourite. It's maybe because Americans hate using extra words, which is a good thing in my way.

  • @FirdavsiWebDev
    @FirdavsiWebDev Pƙed 4 lety

    Nice project!

  • @9one33
    @9one33 Pƙed 4 lety +1

    Keep it simple.. TECH Ed
    Its simple but catchy..

  • @deusopus
    @deusopus Pƙed 2 lety

    i couldn't get it to work. is there an update?

  • @makar1337
    @makar1337 Pƙed 2 lety +1

    When i run the script it says tweet liked but right after that this message pops up: Read-only Application cannot post. and eventually it isn't executed.

    • @Ryycs
      @Ryycs Pƙed 2 lety

      Same for me... Do you found a solution?

    • @makar1337
      @makar1337 Pƙed 2 lety +1

      @@Ryycs yes go into your twitter api settings and change from read-only and give permission to execute

  • @chriskirimi8629
    @chriskirimi8629 Pƙed 2 lety

    I get this message.
    Tweet retweeted
    Read-only application cannot POST
    On my Twitter timeline, no ne likes, what could be the problem?

  • @georgettebeulah4427
    @georgettebeulah4427 Pƙed 4 lety

    This is so true I can understand what you mean and say

  • @mashraful5065
    @mashraful5065 Pƙed 4 lety

    bro this guy is a genius

  • @alvinhh94
    @alvinhh94 Pƙed 2 lety

    hey ed. the twitter developer has changed its interface mind doing a video. updating us on how to get started? thanks

  • @alinagi641
    @alinagi641 Pƙed 3 lety

    me:very helpful
    while i did nothing just looking at his vids and saying helpfull lmao!

  • @JulianJCohen
    @JulianJCohen Pƙed 3 lety

    It would be amazing to be able to use this but for Instagram

  • @ManashowPvP
    @ManashowPvP Pƙed 4 lety

    guys how do i run the program forever?

  • @kungfookeney6628
    @kungfookeney6628 Pƙed 4 lety

    anyone know how to make more stand alone keywords to like and retweet?

  • @igechasamuel3573
    @igechasamuel3573 Pƙed 4 lety

    can you do twitter bot that replies to tweets & dms?

  • @tdbnz123
    @tdbnz123 Pƙed 3 lety

    How can I run this 24/7 this script

  • @shibarmy3527
    @shibarmy3527 Pƙed 2 lety +1

    Can you do a 2022 update video ?? Lots of updates changed the layout and formate of doing this. Thank you

    • @dhruvprabhal9163
      @dhruvprabhal9163 Pƙed 2 lety +1

      Yup ..if you find a similar video using recent python . plz do hit me up

    • @shibarmy3527
      @shibarmy3527 Pƙed 2 lety +1

      @@dhruvprabhal9163 not yet all of them are older đŸ€Šâ€â™‚ïžđŸ˜­

    • @dhruvprabhal9163
      @dhruvprabhal9163 Pƙed 2 lety

      @@shibarmy3527 okay 😕

  • @goranpavlovic9051
    @goranpavlovic9051 Pƙed 3 lety

    Can i get banned for that? And is it possible to be unbanned afterwards?

  • @mritunjoymahanta3533
    @mritunjoymahanta3533 Pƙed 4 lety +1

    Hey ed, are you a Japanese?

  • @TheChannelJ1
    @TheChannelJ1 Pƙed 4 lety +2

    Show me how to create a bot that sends AUTO DIRECT MESSAGES to my followers AND to the followers of my competitors.

  • @9one33
    @9one33 Pƙed 4 lety

    Can you build Instagram or Facebook program for checking stalkers or who is checking your profile..?something with analitics..

  • @dan7777
    @dan7777 Pƙed 4 lety

    I use a similar set up to retweet contest giveaways

  • @stephendanger1419
    @stephendanger1419 Pƙed 3 lety

    How do you avoid: [{'code': 327, 'message': 'You have already retweeted this Tweet.'}]

  • @gilfoyle2211
    @gilfoyle2211 Pƙed 2 lety

    7:28 Legend detected

  • @deveshb793
    @deveshb793 Pƙed 3 lety

    how can i deploy it?