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
Bro, only discovered your channel this weekend. Love it, and you've helped inspire me to become better at Python myself. Cheers mate!
17:34 "Come on! One more for daddy!!!" That is the most hilarious shit on a python tutorial ever.
Aaah I'm so happy you are updating this, thanks for making learning coding seem so effortless, I appreciate you!
Nice and simple tutorial, Ed!
For your new channel, I think "Tech Ed" suits you well.
Girlfriend brings snacks while you’re working? Keep her!
😂😂 every coders dream girlfriend
Yo! Reached out to you through email! Hoping we can work on something together 🙏 . Love this content, keep it up 🚀🔥
Hyee why your comment didn't get reply.....i like your video the most😍😍
Colaboration is gonna be awesome.
damn i can only imagine how both of you might bring fire to the python projects collaborating together!
@@kushalchapagain241 Because one is an imposter and another is a real programmer. And the imposter has a clever name.
Those not able to use the above tutorial, try applying for elevated dev account
Dev Ed, I wanna thank for everything you do! Your channel it’s like a breathe of fresh air!
Look how our Mr. DevEd blushed when his girlfriend arrived!!!
😂😂😂😂
That was angry face dude😂
Aww 😍 This was cute.
@@necromancer7712 True😂😂
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
got same error, do you have the solution to this?
Great video! Keep up the good work buddy! I love your Python tutorials :)
I'm trying to follow this tutorial, but tweepy does not install using both pip or pip3. Help?
Let's build auto subs. and hit 1M
I seen someone actually build a sub bot and got 2k subs
@@scoobywhatitdoo4960 wow
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.
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??
Haha, the word for colon in Finnish (kaksoispiste) actually translates to double dot. You're not alone!
In german it's also double dot or double point (Doppelpunkt) :D
7:47 ooooooth lol XD
thanks for this great information!
what color theme are you using for your visual studio app?
Love that cat background SO MUCH !!
Love it dude! Greetings from Central America (Y)
I swear I heard " Come on one more fur daddy." around 17:37 LMAO
Question, is the bot linked only to the account handle registered with dev or do you need to make a new handle?
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.
Same for me... Do you found a solution?
@@Ryycs yes go into your twitter api settings and change from read-only and give permission to execute
Excellent video. Love your style ❤️❤️
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?
PLEASE do a load more python tutorials, you are seriously interesting to watch.
Well done!!! Please more video, with more sophisticated tasks
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.
pls make an advanced tut about web scraping with puppeteer
try beautifulsoup4
Great stuff, Ed :)
What about retweeting tweets from a Twitter list you made??
16:01
Favorite: American English
Favourite: UK English
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?
Fantastic. Really nice way to get started with python and the Twitter API, it's pretty much English and logic, compared to JS xD
great video bro... i was wondering, is it possible to automatically follow an specific user mentioned in a tweet?
Can you do a 2022 update video ?? Lots of updates changed the layout and formate of doing this. Thank you
Yup ..if you find a similar video using recent python . plz do hit me up
@@dhruvprabhal9163 not yet all of them are older 🤦♂️😭
@@shibarmy3527 okay 😕
Could you do a similar tutorial for instagram?
Jordan Crosby there’s already some out there
How can I automate it to favourite the tweets of the followers of one @ handle?
A proper name for you tech channel would be: Gorgeous Tech
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.:-/
Nice tutorial Dev Ed 😊😊
why when i write "$ pip instal tweepy " .. comes out erorr " the term $ is not recognized as the name of a cmdlet ..... etc" ???
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
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?
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)
So helpful , have used this in my code
Can you make a tutorial on python for a Twitter boy that auto replies to certain users?
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!
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
I get this message.
Tweet retweeted
Read-only application cannot POST
On my Twitter timeline, no ne likes, what could be the problem?
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.
Can you please let us know, if we want to comment on mentioned hashtag then what should we wrote?? tweet.comment?
7:28 Legend detected
More python automation tutorials please...Its so cool.
ikr
Keep it simple.. TECH Ed
Its simple but catchy..
Hello, my vsc isn't making any tweepy occurrences and the text remains white. Any ideas why is this happening?
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
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?
How would you go about retweeting from a list that you created, and not just all of Twitter?
Hi Ed, Where can we get the wallpapers? Please share the link.
DevEd and TechEd would be fun 😁
me:very helpful
while i did nothing just looking at his vids and saying helpfull lmao!
how could i change it for a user instead of a keyword?
hey ed. the twitter developer has changed its interface mind doing a video. updating us on how to get started? thanks
how can i do it only for a particular user i mean like and retweet only from a particular user
Show me how to create a bot that sends AUTO DIRECT MESSAGES to my followers AND to the followers of my competitors.
can we select which account we can use to like and re tweet? or is it fixed to the dev account username
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?
How do we end the code? I am getting a "Expected an indented block at break" Error.
can you do a full website tutorial with backend and payment gateway and publishing it
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."
Hei Ed, why dont U clean the terminal when U are running code again?
It's my suggestion
I literally barely subscribe channels but I can't stop to subscribe you
Hey ed, are you a Japanese?
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
What python extension for VSCode that you are using?
do i need to download that tweepy thing or what pls im new to this
hey man what would you do to circumvent error 429 from app rate limiting on twitter?
Greetings, mate.
Can you explain me how to make a function that will make @mention my followers at posted/retwitted twit?
What's the theme of your vscode??
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..
Olaoluwa Adeyemo selenium
@@dan7777 yh
nice video ,
you used 4 keys
but twitter gives only 3 now ..
i need your help
This is so true I can understand what you mean and say
Can i get banned for that? And is it possible to be unbanned afterwards?
Is this possible to do something similar on instagram ?
thomas Yes except there's no instagram api
(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?
Same problem
How do you avoid: [{'code': 327, 'message': 'You have already retweeted this Tweet.'}]
Where can i found that wallpaper? :)
i cant get time to work in my code at all. im using pycharm
Nice project!
my bot is not showing any changes on my twitter profile
Which font are you using?
i couldn't get it to work. is there an update?
Is .set_access_token a inbuilt function in Python?
can we use this for opensea ? favorite like bot ?
bro this guy is a genius
Who’s watching during lockdown
Name for your 2 channel: Dev Ed Tech
This code is outdated. i cant like tweets like that.
can someone tell why i have errors of "unknown word" whem im literally im copy pasting
when i type in python twitter.py nothing pops up?