Python Twitter Bot That Auto Likes/Retweets Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ส.ค. 2024
  • Purchase the full course here!
    developedbyed....
    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/dev...
    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

ความคิดเห็น • 259

  • @noobcoding7279
    @noobcoding7279 4 ปีที่แล้ว +5

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

  • @jiveshwarichinchghare1249
    @jiveshwarichinchghare1249 4 ปีที่แล้ว +5

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

  • @MrJordanWC
    @MrJordanWC 4 ปีที่แล้ว +3

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

  • @murgmir
    @murgmir 4 ปีที่แล้ว +6

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

  • @tbranc1
    @tbranc1 4 ปีที่แล้ว +85

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

    • @coder4life
      @coder4life 4 ปีที่แล้ว +7

      😂😂 every coders dream girlfriend

  • @CleverProgrammer
    @CleverProgrammer 4 ปีที่แล้ว +74

    Yo! Reached out to you through email! Hoping we can work on something together 🙏 . Love this content, keep it up 🚀🔥

    • @kushalchapagain241
      @kushalchapagain241 4 ปีที่แล้ว

      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 4 ปีที่แล้ว +2

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

    • @simrandotdev
      @simrandotdev 3 ปีที่แล้ว +6

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

  • @gilfoyle2211
    @gilfoyle2211 2 ปีที่แล้ว +2

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

  • @rustambokaev4886
    @rustambokaev4886 4 ปีที่แล้ว +2

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

  • @daxdmon3297
    @daxdmon3297 4 ปีที่แล้ว +107

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

    • @coder4life
      @coder4life 4 ปีที่แล้ว

      😂😂😂😂

    • @necromancer7712
      @necromancer7712 4 ปีที่แล้ว

      That was angry face dude😂

    • @FlorinPop
      @FlorinPop 4 ปีที่แล้ว +1

      Aww 😍 This was cute.

    • @ayushraj6525
      @ayushraj6525 3 ปีที่แล้ว

      @@necromancer7712 True😂😂

  • @farmersharma9608
    @farmersharma9608 2 ปีที่แล้ว +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 2 ปีที่แล้ว

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

  • @stefanop.6097
    @stefanop.6097 4 ปีที่แล้ว

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

  • @RetroSugar
    @RetroSugar 4 ปีที่แล้ว +2

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

  • @prashantpandey645
    @prashantpandey645 4 ปีที่แล้ว +41

    Let's build auto subs. and hit 1M

  • @theweebdev
    @theweebdev 4 ปีที่แล้ว

    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.

  • @AdotobTube
    @AdotobTube 4 ปีที่แล้ว +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??

  • @Italiafani
    @Italiafani 4 ปีที่แล้ว +2

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

    • @Lucsy3012
      @Lucsy3012 4 ปีที่แล้ว +1

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

  • @dynamohack
    @dynamohack 4 ปีที่แล้ว +9

    7:47 ooooooth lol XD

  • @waad5497
    @waad5497 3 ปีที่แล้ว

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

  • @bingugapleki
    @bingugapleki 2 ปีที่แล้ว

    Love that cat background SO MUCH !!

  • @IsmaelMartinezBeyondTheWall
    @IsmaelMartinezBeyondTheWall 3 ปีที่แล้ว

    Love it dude! Greetings from Central America (Y)

  • @revkasomethingsomething9735
    @revkasomethingsomething9735 3 ปีที่แล้ว +1

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

  • @dracomet2097
    @dracomet2097 4 ปีที่แล้ว +1

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

  • @makar1337
    @makar1337 3 ปีที่แล้ว +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 3 ปีที่แล้ว

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

    • @makar1337
      @makar1337 3 ปีที่แล้ว +1

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

  • @decentralandgaming2324
    @decentralandgaming2324 2 ปีที่แล้ว

    Excellent video. Love your style ❤️❤️

  • @kylebyron7502
    @kylebyron7502 ปีที่แล้ว

    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?

  • @kuro2ck
    @kuro2ck 4 ปีที่แล้ว

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

  • @madigor9264
    @madigor9264 4 ปีที่แล้ว

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

  • @imyasharya
    @imyasharya 4 ปีที่แล้ว +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.

  • @timska5628
    @timska5628 4 ปีที่แล้ว +5

    pls make an advanced tut about web scraping with puppeteer

    • @halfword
      @halfword 4 ปีที่แล้ว +1

      try beautifulsoup4

  • @TheNerdyDev
    @TheNerdyDev 4 ปีที่แล้ว

    Great stuff, Ed :)

  • @punyan775
    @punyan775 3 ปีที่แล้ว +1

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

  • @andrewk71
    @andrewk71 4 ปีที่แล้ว +3

    16:01
    Favorite: American English
    Favourite: UK English

  • @LOONACORE
    @LOONACORE 3 ปีที่แล้ว

    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?

  • @mostmojo
    @mostmojo 4 ปีที่แล้ว

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

  • @danfcrypto7703
    @danfcrypto7703 2 ปีที่แล้ว

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

  • @shibarmy3527
    @shibarmy3527 2 ปีที่แล้ว +1

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

    • @dhruvprabhal9163
      @dhruvprabhal9163 2 ปีที่แล้ว +1

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

    • @shibarmy3527
      @shibarmy3527 2 ปีที่แล้ว +1

      @@dhruvprabhal9163 not yet all of them are older 🤦‍♂️😭

    • @dhruvprabhal9163
      @dhruvprabhal9163 2 ปีที่แล้ว

      @@shibarmy3527 okay 😕

  • @MrJordanWC
    @MrJordanWC 4 ปีที่แล้ว +16

    Could you do a similar tutorial for instagram?

    • @JR-ub2wt
      @JR-ub2wt 4 ปีที่แล้ว

      Jordan Crosby there’s already some out there

  • @ayoooooo
    @ayoooooo 4 ปีที่แล้ว +1

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

  • @spiritcore1
    @spiritcore1 4 ปีที่แล้ว

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

  • @ONRISEAI
    @ONRISEAI 2 ปีที่แล้ว

    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.:-/

  • @arjaypangilinan1113
    @arjaypangilinan1113 4 ปีที่แล้ว

    Nice tutorial Dev Ed 😊😊

  • @papacrypto7708
    @papacrypto7708 3 ปีที่แล้ว

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

  • @Hamilton_Gilpin
    @Hamilton_Gilpin 4 ปีที่แล้ว +1

    Hey bro, so twitter being an american company use "Favorite" rather than the British spelling of "Favourite". Another example of this can be "Color" and "Colour". Basically when the americans were moving from britain to america they forgot to bring a dictionary and went with these words lol

  • @swing-o-gram
    @swing-o-gram 4 ปีที่แล้ว +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 3 ปีที่แล้ว +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)

  • @kudakwashemachekanyanga4559
    @kudakwashemachekanyanga4559 3 ปีที่แล้ว

    So helpful , have used this in my code

  • @jodx
    @jodx 4 ปีที่แล้ว +2

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

  • @0xkwizzy
    @0xkwizzy 2 ปีที่แล้ว

    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!

  • @winstondeciar4932
    @winstondeciar4932 3 ปีที่แล้ว

    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

  • @chriskirimi8629
    @chriskirimi8629 2 ปีที่แล้ว

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

  • @TeamPu1s3
    @TeamPu1s3 3 ปีที่แล้ว

    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.

  • @YasirBaigOfficial
    @YasirBaigOfficial 2 ปีที่แล้ว

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

  • @gilfoyle2211
    @gilfoyle2211 2 ปีที่แล้ว

    7:28 Legend detected

  • @AdamsOyifi
    @AdamsOyifi 4 ปีที่แล้ว

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

  • @9one33
    @9one33 4 ปีที่แล้ว +1

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

  • @rty0m
    @rty0m 3 ปีที่แล้ว

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

  • @neginqasemi9509
    @neginqasemi9509 2 ปีที่แล้ว

    okay so i did whatever you said. but twitter has been changed entirely and it is not possible because they review and then let you make an app. so pimply it is not possible to have a personal app anymore

  • @lolcreeper1976
    @lolcreeper1976 3 ปีที่แล้ว

    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?

  • @PRANKOWNAGE
    @PRANKOWNAGE 4 ปีที่แล้ว

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

  • @RVAraghav
    @RVAraghav 4 ปีที่แล้ว

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

  • @u3u36
    @u3u36 4 ปีที่แล้ว

    DevEd and TechEd would be fun 😁

  • @alinagi641
    @alinagi641 4 ปีที่แล้ว

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

  • @tanmantacomama8851
    @tanmantacomama8851 4 ปีที่แล้ว

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

  • @alvinhh94
    @alvinhh94 2 ปีที่แล้ว

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

  • @aayushgoyal6357
    @aayushgoyal6357 3 ปีที่แล้ว

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

  • @TheChannelJ1
    @TheChannelJ1 4 ปีที่แล้ว +2

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

  • @ronit8067
    @ronit8067 4 ปีที่แล้ว

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

  • @rakeshkulkarni2125
    @rakeshkulkarni2125 2 ปีที่แล้ว

    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?

  • @virajbagga5923
    @virajbagga5923 2 ปีที่แล้ว

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

  • @owl5496
    @owl5496 4 ปีที่แล้ว

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

  • @niyaziok5507
    @niyaziok5507 4 ปีที่แล้ว

    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."

  • @Rico220990
    @Rico220990 4 ปีที่แล้ว

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

  • @SuperSurendraverma
    @SuperSurendraverma 4 ปีที่แล้ว

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

  • @mritunjoymahanta3533
    @mritunjoymahanta3533 4 ปีที่แล้ว +1

    Hey ed, are you a Japanese?

  • @sveannnnnnn7578
    @sveannnnnnn7578 2 ปีที่แล้ว

    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

  • @hemathhacker6839
    @hemathhacker6839 4 ปีที่แล้ว

    What python extension for VSCode that you are using?

  • @jazjazzzy112
    @jazjazzzy112 2 ปีที่แล้ว

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

  • @samuelpolimeni4150
    @samuelpolimeni4150 4 ปีที่แล้ว

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

  • @artemisentreri8845
    @artemisentreri8845 4 ปีที่แล้ว

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

  • @peteropere5669
    @peteropere5669 2 ปีที่แล้ว

    What's the theme of your vscode??

  • @olaoluwaadeyemo6939
    @olaoluwaadeyemo6939 4 ปีที่แล้ว +1

    please make a video about how we can make an automated bot that takes information from my website and puts it another website and that bot can like click buttons on the other website and things like that repeadtedly..

  • @teniolatimothy260
    @teniolatimothy260 2 ปีที่แล้ว

    nice video ,
    you used 4 keys
    but twitter gives only 3 now ..
    i need your help

  • @georgettebeulah4427
    @georgettebeulah4427 4 ปีที่แล้ว

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

  • @goranpavlovic9051
    @goranpavlovic9051 4 ปีที่แล้ว

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

  • @tomasz69
    @tomasz69 4 ปีที่แล้ว +1

    Is this possible to do something similar on instagram ?

    • @dan7777
      @dan7777 4 ปีที่แล้ว

      thomas Yes except there's no instagram api

  • @josepinto1561
    @josepinto1561 3 ปีที่แล้ว

    (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?

    • @LOONACORE
      @LOONACORE 3 ปีที่แล้ว

      Same problem

  • @stephendanger1419
    @stephendanger1419 3 ปีที่แล้ว

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

  • @APX095
    @APX095 4 ปีที่แล้ว

    Where can i found that wallpaper? :)

  • @Mushyo
    @Mushyo 3 ปีที่แล้ว

    i cant get time to work in my code at all. im using pycharm

  • @FirdavsiWebDev
    @FirdavsiWebDev 4 ปีที่แล้ว

    Nice project!

  • @devashishranjan7642
    @devashishranjan7642 4 ปีที่แล้ว

    my bot is not showing any changes on my twitter profile

  • @AhmedHassan-nz9xk
    @AhmedHassan-nz9xk 4 ปีที่แล้ว

    Which font are you using?

  • @deusopus
    @deusopus 2 ปีที่แล้ว

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

  • @bursheyash2
    @bursheyash2 4 ปีที่แล้ว

    Is .set_access_token a inbuilt function in Python?

  • @jessicausa89
    @jessicausa89 2 ปีที่แล้ว

    can we use this for opensea ? favorite like bot ?

  • @mashraful5065
    @mashraful5065 4 ปีที่แล้ว

    bro this guy is a genius

  • @yxng_stxpz
    @yxng_stxpz 4 ปีที่แล้ว +1

    Who’s watching during lockdown

  • @timska5628
    @timska5628 4 ปีที่แล้ว +3

    Name for your 2 channel: Dev Ed Tech

  • @leandrocampanelli1095
    @leandrocampanelli1095 2 ปีที่แล้ว +2

    This code is outdated. i cant like tweets like that.

  • @RufioAnimeSeries
    @RufioAnimeSeries 4 ปีที่แล้ว

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

  • @elijahrotenberger7375
    @elijahrotenberger7375 4 ปีที่แล้ว

    when i type in python twitter.py nothing pops up?