How to Create a Twitter Retweet Bot using Tweepy [Python]

Sdílet
Vložit
  • čas přidán 27. 07. 2021
  • How to Create a Twitter Retweet Bot using Tweepy [Python]
    - a video by CreepyD
    In today's video, we'll be creating a Twitter Retweet Bot. We'll be creating 2 bots, a Twitter retweet bot that searches for tweets mentioning us, and then the bot will use simple Twitter sentiment analysis to determine if the tweet is positive, and if it is, the bot will retweet the tweet. The other Twitter Retweet Bot that we'll be making will search for tweets containing certain keywords, and if a tweet contains those keywords our bot will retweet the tweet. We will be creating these Twitter Retweet Bots in Python, and we'll be using the Tweepy library.
    GitHub - github.com/CreepyD246/Twitter...
    Support me on Patreon - / creepyd
    ____________
    USEFUL LINKS & DOCUMENTATIONS:
    Twitter Developer Platform - / en
    Tweepy Documentation - docs.tweepy.org/en/stable/
    Tweepy PyPI - pypi.org/project/tweepy/
    ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅
    ____________
    OTHER TUTORIALS:
    Twitter Bot Tutorial in Python [Selenium] - • How to Create a Twitte...
    Tweepy Setup Tutorial - • How to Set Up Tweepy [...
    Tweepy Beginner Tutorial - • Beginner Tweepy Tutori...
    Twitter Reply Bot Tutorial - • How to Create a Twitte...
    Tweepy Like Bot - • How to Create a Twitte...
    ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅
    ____________
    OTHER MEDIA:
    Instagram - / creepyd_studios
    Twitter - / creepyd_studios
    Discord - / discord
    ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅
  • Jak na to + styl

Komentáře • 29

  • @jobbob8607
    @jobbob8607 Před 2 lety

    love your content!

  • @harshchandekar3596
    @harshchandekar3596 Před 2 lety

    great!!

  • @virajbagga5923
    @virajbagga5923 Před 2 lety

    When I run it I get the error 'API' object has no attribute 'me'. Any Ideas?

  • @arefathyeredin5083
    @arefathyeredin5083 Před 2 lety

    Hello there. Thanks for this super helpful tutorial playlist. Very clear presentation, great content. I wanted to ask if you can make some advanced twitter bot, or something that would be integrated and fed into Telegram. And also if I may ask, can you make a video on how to host the bot file (possibly free but also any other good hosting platforms) Thank you so much!! Appreciate it!!

  • @ShimoNova-R.H.D
    @ShimoNova-R.H.D Před 2 lety

    Cool

  • @peblejackson4714
    @peblejackson4714 Před 2 lety

    How well does Textblob handle Sarcasm? Genuine question and not a sarcasm.... feel like I had to clear that up.

    • @CreepyD246
      @CreepyD246  Před 2 lety +1

      I don't think it handles sarcasm at all well, you'd need another method for sentiment analysis

    • @peblejackson4714
      @peblejackson4714 Před 2 lety

      @@CreepyD246 Thanks for clearing that up. Great vid :)

  • @LinusMueller123
    @LinusMueller123 Před 10 měsíci

    The attributes stream listener dont work. please help

    • @CreepyD246
      @CreepyD246  Před 10 měsíci

      Watch the newer series. This one is old. You might have to Google some stuff here and there because Twitter/X had a lot of changes recently, but most of it should be the exact same

    • @LinusMueller123
      @LinusMueller123 Před 10 měsíci

      Bro. Twitter changed free access to the v2 api. You can only lookup users and post. Scums. Is there any way to go around that?@@CreepyD246

  • @alexandre-createurdigital792

    This tutorial work with Tweepy V4 ? Thanks creepyyy

    • @CreepyD246
      @CreepyD246  Před 2 lety +1

      I don't think so, try using Tweepy version 3.10.0 (which is the one I used in the video)
      Uninstall Tweepy first like this:
      pip uninstall tweepy
      When uninstalling Tweepy, they might ask you if you're sure, if that happens just type "y" and press enter
      Then install version 3.10.0 like this
      pip install tweepy==3.10.0

  • @zai1628
    @zai1628 Před 2 lety

    does this still work?

    • @CreepyD246
      @CreepyD246  Před 2 lety

      As long as you use Tweepy version 3.10.0 yes

  • @crazydiepro2945
    @crazydiepro2945 Před 2 lety +1

    Hello

    • @CreepyD246
      @CreepyD246  Před 2 lety

      Sup man haven't seen you in a while

  • @Neel98
    @Neel98 Před 2 lety

    Time To Win Some Twitter Giveaways :)

    • @macrro
      @macrro Před 2 lety

      YOOOO that's genius

    • @Neel98
      @Neel98 Před 2 lety

      Actually Won Giveaways after making my bot :)

  • @enockjr5048
    @enockjr5048 Před 2 lety

    how you get that 3 points after ''def get_info(credential):''?
    i got a error:
    ''Expected indented blockPylance'', that is about auth = tweepy.OAuthHandler(api_key, apy_secret_key)
    sorry for my bad english

    • @CreepyD246
      @CreepyD246  Před 2 lety

      You need to add indents (press tab at each line) after the get_info() function.
      Also, to get the credentials you need to sign up for a Twitter Developer Account