Automated Twitter Bot in Python
ฝัง
- เผยแพร่เมื่อ 9 ก.พ. 2025
- In this video we build a simple Twitter bot in Python.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
💻 The Algorithm Bible Book: www.neuralnine...
🐍 The Python Bible Book: www.neuralnine...
👕 Programming Merch: www.neuralnine...
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine...
🎙 Discord: / discord
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/Neu...
🎵 Outro Music From: www.bensound.com/
Hey man, love the video! However, I'm stuck at the 5:45 timestamp with this error: "TypeError: API.create_friendship() takes 1 positional argument but 2 were given". My code is exactly the same as yours (triple-checked everything) and I'm using the latest versions of both Python and Tweepy. Any suggestions? I looked it up, but really to no avail.
I had the same error, but I switched to python 3.7 and tweepy 3.8.0. I'm sure there are other ways, but this worked for me.
I applied for Elevated Access to the API on the Twitter developer page. It started working then
worked for me giveing it the parameter name:
api.create_friendship(screen_name='freeCodeCamp')
i have tried everything to fix aswell plz help us
update got it working
I appreciate the basics you shared in this tutorial!!!
Cheers to that!
the legend making interesting projects + simple+ explained perfectly what do you want more
lol i love this guy
I was waiting for this, i wanted to learn how to use twit bot with python, thank you so much!
enjoy!
Is there a way to do it only using the Essential access (API v2 endpoints only)?
Nice man! Keep it up with this helpful videos. I hope next we will have the discord bot with python video ;)
It is already recorded ^^
@@NeuralNine :0
Searched Twitter bot Python. Was like “Yeah!” when I saw it was your video. Always great content. Thanks buddy.
when i open the twitter developer page m getting 3 keys only not 4 : apikey apikey secret, bearer token, can u help me on this need the last key a well
Clear and Straight to the point...
I was waiting for this for a month man thanks :)
Can you please how to execute twitter sentiment analysis based on ordinal regression project...
what code do we need to add to make the bot respond on those tweets mentioning specific keywords?
Any answer yet?
Hey, I have an issue that I can't get past.
I have Elevated access, but when I try to Tweet something using my bot, it just gives me a 401 (Unauthorised) error.
I used the code you displayed here how I needed to.
Could someone help? Thanks if you do.
Yo you need to activate oauth 1.a access
@@normalguy8550 ah thanks :D
Love youre videos man! keep doing them
How can I create a Twitter bot that will auto-tweet (not retweet) another account's tweets and replies? An issue I run into is people deleting tweets in threads, if I retweet it is gone but if I had a bot that would tweet some that accounts reply I would also have them. Thank you
Python all super vedio bro 👍👍👍
👍🏻
you can just regenerate the keys, I don't see the needs for leaving crucial steps.
can i do this with a certain twitter tag? or connect tweetdeck to this?
oh god your arms i was about to die trying not think sutff while watching the video
What about auto reply on every tweeted by people that I folow ?
you could use an .env file and use pipenv for the virtual environment well is personal preference
when I tried to use a .env it was not working correctly
How do you mask your IP address with a proxy when interacting with the API
Wie bekomme ich Zugriff zum Twitter Developer Portal? DIese Bewerbung macht mich fertig
how to set the timing for uploading something ?
Thanks for this sir, but how can we add the option to comment on people's post. The comments should be taken from a file at random and posted
Each time the person makes a Twit, the bot automatically comments
Maybe do a video on getting alerted via text when Elon tweets about crypto.
how to make the twitterkeys file can someone explain please..
Have the same question as can’t find a video where keys can be added to the file hidden in this video and used it, maybe a short video on creating that file will be great
can we add some image in here?
Could you make a login system or a multiplayer game (Pygame module)?
Thanks a lot 🤠🙏
!= works in python?
Your big fun bro
We are not IT experts too difficult.
nice video keep it up
thanks ^^
learned something and hit the like button :)
how do i make the bot retweet something???????
please help
it's a misleading video, you can't do what he did without a elevated access on twitter, which you must apply for and twitter will put on a "waitlist" and say you have reach the limit of demand to be elevated.
I've been on waiting list for months.
Thanks, the video was really helpful!
This is not working now, saying forbidden access, need to apply for elevated access
this one really helped me alot!! thanks for this wonderful tutorial!!
Thank you
Thanks
Can you do something similar with Instagram?
Yo!!
Bro telegram bot next please
Code a messenger bot with fbchat
Make a video on discord bot
Stripper
First
^^
@@NeuralNine hey bro love your content .just want to ask where do you live?
@@bhavyamverma70 austria
@@NeuralNine oh great I am from India once again I love yor content
I'm from Turkey and here is UN
second lol
😂😂
:)
3rd XD
You truly deserve this dislike this time.
for ignoring the elevated access problem related to twitter excessive protocols.
it's like... primordial, yet ignored.
The api itself is not very consistent. I did api.get_user('xyz123') and did not work. I changed it to api.get_user(screen_name = 'xyz123') and worked fine.
Great stuff. This helped me get started with my first project, @RussiazikBot
Learned a lot piecing it together so far. Almost polished!