No video

How to Make a Twitter Retweet Bot in Python using Tweepy

  Рет қаралды 6,531

CreepyD

CreepyD

2 жыл бұрын

How to Create a Twitter Retweet Bot in Python using Tweepy
- a video by CreepyD
In this Tweepy Tutorial, I'll be showing you how to make a Twitter Retweet Bot. The retweet bot will retweet tweets that contain a certain hashtag. We'll be creating this Tweepy retweet bot using Python.
Support me on Patreon - / creepyd
Code (GitHub) - github.com/CreepyD246/twitter...
____________
USEFUL LINKS & DOCUMENTATIONS:
Syntax for building Tweepy Stream Rules - / build-a-rule
Tweepy Setup Tutorial - • How to set Up Tweepy f...
Twitter Developer Portal - / dashboard
Tweepy Documentation - docs.tweepy.org/en/stable/
Twitter API Documentation - / twitter-api
Python Download Site - www.python.org/
̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅
____________
OTHER TUTORIALS:
Tweepy Setup Tutorial - • How to set Up Tweepy f...
Tweepy Beginner Tutorial - • Beginner Tweepy Tutori...
How to Create a Discord Bot with Python [Full Tutorial] - • How to Create a Discor...
How to Create a Tweepy Stream - • How to Create a Tweepy...
How to Create a Twitter Bot [Tweepy with Python] - • How to Create a Twitte...
How to Create a Twitter Bot [Selenium With Python Tutorial] - • How to Create a Twitte...
̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅
____________
OTHER MEDIA:
Instagram - / creepyd_studios
Twitter - / creepyd_studios
Discord - / discord
Itch.io - creepyd.itch.io
̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅ ̅
If you enjoyed this Tweepy Retweet Bot Tutorial and found it helpful, please remember to like the video and subscribe to the channel for more content like this.
Hope you enjoyed it.

Пікірлер: 22
@CreepyD246
@CreepyD246 2 жыл бұрын
Some people want a Reply Bot that replies to tweets containing certain hashtags. It's really easy to change this bot to a reply bot, you just need to change the line that says: client.retweet(tweet.id) to : client.create_tweet(in_reply_to_tweet_id=tweet.id, "your reply in here")
@ahmadizzah220
@ahmadizzah220 2 жыл бұрын
can you make the tutorial for this? I appreciate that if you want to make the tutorial
@cheflow02
@cheflow02 Жыл бұрын
thanks for your KZfaq clips they are very helpful ... :)
@jamesgallen3989
@jamesgallen3989 2 жыл бұрын
You're killing it man if ever I get rich I'll repay you🙏
@isabelmoyano273
@isabelmoyano273 Жыл бұрын
Hi! I keep getting the error: module 'tweepy' has no attribute 'StreamRule' Any idea how to fix it? Thanks!
@TechAceYoutube
@TechAceYoutube 2 жыл бұрын
Bro, when I try to run it as a retweet bot, it gives me an error "AttributeError: module 'tweepy' has no attribute 'Client' and if I try to run it as a reply bot by the method you've told in the pinned comment, it gives the error as "SyntaxError: positional argument follows keyword argument", how do I fix it?
@kanishkkhurana5347
@kanishkkhurana5347 Жыл бұрын
How do i delete a rule ? and how do i add a new one ?
@cheflow02
@cheflow02 Жыл бұрын
how can we set it to only pick one lang like EN?
@andressagobbo5079
@andressagobbo5079 Жыл бұрын
I'm getting Stream connection has errored or timed out and error 429 "This stream is currently at the maximum allowed connection limit.", don't know how to fix it :(
@chasepham4600
@chasepham4600 2 жыл бұрын
Is there a way to retweet things only from my following?
@mramanyadav9826
@mramanyadav9826 Жыл бұрын
I am getting error of tweepy has no attribute ID, please help anyone
@rMalakaib
@rMalakaib Жыл бұрын
Do you need to have the 100$ API endpoints for this. My code works to post a create_tweet but doesn't work to stream and print (gives me a "When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal." error).
@adityaishxn
@adityaishxn Жыл бұрын
yes we would need to buy
@rstchan
@rstchan 2 жыл бұрын
I can not get my stream rules to change is there a way to reset streamrule or how do you manually remove them?
@CreepyD246
@CreepyD246 2 жыл бұрын
Around the 3:35 time stamp of this video I explain why that is, try using dry_run next time. I also realised a few days after this series that I didn't explain the stream rules as best I could. I wrote some code, this code deletes all current rules assigned to your bot/stream. Put this under the section where you created the stream variable: for rule in stream.get_rules()[0]: stream.delete_rules(rule.id) Hope this helps
@rstchan
@rstchan 2 жыл бұрын
@@CreepyD246 so if i copy paste as is i get this error "for rule in stream.get_rules()[0]: TypeError: 'NoneType' object is not iterable" if i change the zero to 1 the code will run however it does not delete the rules hope im not being a pain lol im just trying to learn some python and have some fun im on tweepy 4.1.0 if that matters
@alwayshao
@alwayshao 2 жыл бұрын
I was wondering if we can use textblob(?) to only rt tweets that contain certain keyword and are positive too? How do I make the bot rt only tweets with the keywords and not tweets from usernames that happen to have the keyword? And my final question, if i close my pc the bot stops running too, is there a way i can keep it running forever regardless of me turning off my pc or the program? Thanks for this video man, I've been waiting !
@CreepyD246
@CreepyD246 2 жыл бұрын
You can use textblob, but you'll need another tutorial for that. It's easy to implement, and you can use the tweet's text. If you want to run the bot continuously you'll need some way of hosting the bot online, you can check out repl.it, it's free. Just make sure you don't expose your bot's keys. As for the keyword thing, I'm not entirely sure why the bot does that... It should only retweet hashtags, maybe there are optional parameters when creating filter rules. Maybe you already have rules set up in the past?
@alwayshao
@alwayshao 2 жыл бұрын
@@CreepyD246 I will check that site out, and for textblob will u be doing another tutorial then? (😭) I will try to figure out some documentations on my own too ig. Also I've been running into another issue where it keeps saying too many requests plus bot keeps trying to rt tweets that it already has even tho I did the mention_id = 1 thingy. Yo thanks for replying tho
@Machzy
@Machzy Жыл бұрын
Is there a way to create a real-time retweet bot based on a specific twitter account and a keyword exclusion list?
@constantinosbou
@constantinosbou 6 ай бұрын
Did you find anything bro?
@Machzy
@Machzy 6 ай бұрын
@@constantinosbou I did, but you have to pay for twitter API plans, which I’m not gonna do.
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 4 МЛН
No empty
00:35
Mamasoboliha
Рет қаралды 8 МЛН
ВОДА В СОЛО
00:20
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 30 МЛН
Creating a POWERFUL Twitter Bot to Reply to Elon Musk
8:06
How To Tweet with Images Using Tweepy V2
3:57
Jorge Zavala
Рет қаралды 2,8 М.
Python Twitter Bot That Auto Likes/Retweets Tutorial
21:05
developedbyed
Рет қаралды 98 М.
How to scrape usernames of followers on Instagram (with Python)
8:28
TopNotch Programmer
Рет қаралды 53 М.
How to get TWEETS by Python | Twitter API 2022
17:04
AI Spectrum
Рет қаралды 144 М.
How to build a Twitter bot that Tweets for you
13:48
WesGPT
Рет қаралды 28 М.
How to Create a Twitter Reply Bot in Python [Tweepy]
6:41
How to Rotate Proxies with Python
13:05
John Watson Rooney
Рет қаралды 119 М.
The Ultimate Guide to Selenium Bots - Automating Twitter
37:28
Python Simplified
Рет қаралды 35 М.
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 4 МЛН