How I post banger tweets with artificial intelligence // Twitter Bot Tutorial

Ғылым және технология

I built a twitter bot that automatically tweets content generated by artificial intelligence using GPT-3. Learn how to build your own twitter bot from scratch with Node.js and the OAuth 2.0 protocol. fireship.io/lessons/twitter-b...
#ai #js #tutorial
Follow Bob / boblikescode
Follow Fireship / fireship_dev
🔗 Resources
Source Code github.com/fireship-io/gpt3-t...
Twitter API developer.
OpenAI openai.com/
📚 Chapters
00:00 AI Twitter Bot
00:42 OAuth 2.0 Crash Course
02:36 Project Setup
04:38 Step 1. OAuth URL
05:44 Step 2. OAuth Callback
06:41 Step 3. Use the Twitter API
09:00 AI-generated Faces
🔥 Get More Content - Upgrade to PRO
Upgrade to Fireship PRO at fireship.io/pro
Use code lORhwXd2 for 25% off your first payment.
🎨 My Editor Settings
- Atom One Dark
- vscode-icons
- Fira Code Font
🔖 Topics Covered
- API Authentication Basics
- How to use the Twitter API?
- How to build a twitter bot?
- What is OAuth 2.0?
- Twitter API 2.0 tutorial
- OpenAI Tutorial

Пікірлер: 396

  • @Fireship
    @Fireship2 жыл бұрын

    This was a fun demo, BUT apparently building twitter bots with OpenAI is NOT allowed, just a heads up before someone gets hurt 💀 kzread.infoUgkxI30KUEX5vd4d_xxL-gw7vBHo1w_1qBEj

  • @brooksgunn5235

    @brooksgunn5235

    2 жыл бұрын

    Thanks for the heads up. Who reads TOS anyway!

  • @shreethejashagrithaya3211

    @shreethejashagrithaya3211

    2 жыл бұрын

    Lol i just watched and he died just now 🤣😂 RIP MAY THE SOURCE BE WITH YOU BOB 😭

  • @maxthetomas

    @maxthetomas

    2 жыл бұрын

    rip bob

  • @jeromearenas8028

    @jeromearenas8028

    2 жыл бұрын

    RIP Bob, I missed you already 😭

  • @gregd1218

    @gregd1218

    2 жыл бұрын

    I'm proud to say I was among the few that could read some of Bob's tweet. He might have only 3 followers, but... but.... he was a cool dude

  • @Christopher-ew7jw
    @Christopher-ew7jw2 жыл бұрын

    At first I thought this would just be a fun video, maybe not that useful. But that was a GREAT concise explanation of OAuth2.0. Thanks Jeff!

  • @crustydev5561

    @crustydev5561

    2 жыл бұрын

    Seriously, I don't care one bit about the Twitter aspect of this but the Oauth explanation is amazing

  • @Christopher-ew7jw

    @Christopher-ew7jw

    2 жыл бұрын

    @@crustydev5561 Jeff should change the title to "The best OAuth explanation ever, and a Twitter bot"

  • @masternobody1896

    @masternobody1896

    2 жыл бұрын

    I got rejected at twitter

  • @amber9040

    @amber9040

    2 жыл бұрын

    Like actually, I really needed this video to explain OAuth for me

  • @gokulakrishnanr8414

    @gokulakrishnanr8414

    6 ай бұрын

    Hey there! Glad you found the video helpful! Jeff did a fantastic job breaking down OAuth2.0, didn't he? If you have any more questions, feel free to ask. Happy tweeting!

  • @nicholasbicholas
    @nicholasbicholas2 жыл бұрын

    In every fireship vid, when the music fades away at the beginning you know the intro is over and shit is about to get real, so pay attention

  • @adrishkumarde4155

    @adrishkumarde4155

    2 жыл бұрын

    tru boi

  • @vaisakhkm783

    @vaisakhkm783

    2 жыл бұрын

    And do -n't- try this sht at home....!!!

  • @explosionimplosion4679

    @explosionimplosion4679

    2 жыл бұрын

    Cues me in to switch focus from KZread to my IDE ;)

  • @Christopher-ew7jw

    @Christopher-ew7jw

    2 жыл бұрын

    Dang, I didn't notice this until you pointed it out.

  • @phillies4eva
    @phillies4eva2 жыл бұрын

    You have very quickly become my absolute favorite coding youtube channel. Your angular videos literally saved my sanity at my job. Thanks! If you make a sql course I'm going to gift it to my friend who wants to learn sql

  • @texrot9781

    @texrot9781

    2 жыл бұрын

    I suggets you to check out mongodb. >Bash system for arranging permissions and database system >better multiplatform support like linux >free open source with GPL license >Free cloud database for beginning >Good interface+connection system and good client(mongodb compass) >json format system so you can arrange your database in programming languages so much easier >Also generally easier than SQL Good NoSQL. I made my points, you can of use sql abd there a lot of tutoriald on internet and codeacademy. Still your choice

  • @TheRustyCrab
    @TheRustyCrab2 жыл бұрын

    Always thrilled to see your videos in my feed, thanks man 👌

  • @tyswenson7542
    @tyswenson75422 жыл бұрын

    The best thing about this channel is the pace of the videos. Too many tutorials beat around the bush before getting to the bulk of the content.

  • @kiron2x298

    @kiron2x298

    2 жыл бұрын

    yes! lots of them i can't watch, too much meandering.

  • @MindlessTurtle
    @MindlessTurtle2 жыл бұрын

    Your videos keep getting better and existentially scarier.

  • @daviemola864
    @daviemola8642 жыл бұрын

    This guy never disappoints

  • @sovuchkin5093

    @sovuchkin5093

    2 жыл бұрын

    Bot

  • @Fantastika

    @Fantastika

    Жыл бұрын

    @@sovuchkin5093 polish "person"

  • @XxXRedSn0wXxX
    @XxXRedSn0wXxX2 жыл бұрын

    Great video! Looking forward to see more content about AI and ML!

  • @craigmacritchie3087
    @craigmacritchie30872 жыл бұрын

    This is unreal, nice job Jeff!

  • @mohammedrokerya8586
    @mohammedrokerya85863 ай бұрын

    Thanks for the video! I was having troubles when I was hitting their api endpoints directly. but this library helped a lot.

  • @mariiikar
    @mariiikar2 жыл бұрын

    This was brilliant! Thanks. I just finished converting this from Firebase to Express and have it being served on my server with Caprover. I have the tweets firing every 15 minutes with a crontab. Oh yea!

  • @david20040420
    @david200404202 жыл бұрын

    Thank you for the full guide, it was really understandable. Keep up the good work ^^

  • @RedCrafter07
    @RedCrafter072 жыл бұрын

    I just searched about AI and I get this. Thank you so much!

  • @philosophiabme
    @philosophiabme2 жыл бұрын

    I think the addition of the Stonks person is really what made this click for me. Thank you.

  • @fd2444
    @fd2444 Жыл бұрын

    I took a whole class on backend development with node js and this stuff looks like a whole different language, awesome

  • @CodeWithAndrea
    @CodeWithAndrea2 жыл бұрын

    Awesome as usual!

  • @padmashreejha2383
    @padmashreejha23832 жыл бұрын

    Even I was going to make it tomorrow love you man

  • @abdorizak
    @abdorizak2 жыл бұрын

    I didn't understand about Auth 2.0 how to implement but know i understand thanks 💯🔥

  • @nro337
    @nro3372 жыл бұрын

    This is a great video, thanks a lot!

  • @imad4324
    @imad43242 жыл бұрын

    thanks man for the final note

  • @deepshah2305
    @deepshah23052 жыл бұрын

    This is the best KZread channel I know 🔥🔥

  • @blakensash4079
    @blakensash40792 жыл бұрын

    I always just hit like right away on the videos from this channel, and then at least once more during the video I'm like, "Yeah, that was awesome info. Let's go like this video." only to be reminded that past-Blake already did that.

  • @cLiPz0r
    @cLiPz0r2 жыл бұрын

    Just wanted to let you know that the Twitter API key is briefly visible at 1:10 if you haven't already noticed. Awesome video btw!

  • @tender.branson
    @tender.branson2 жыл бұрын

    Your content is pure dope!

  • @didiermunezero4089
    @didiermunezero40892 жыл бұрын

    Thanks for this bot!

  • @thesciencenation7215
    @thesciencenation72152 жыл бұрын

    My GPT3 sense was tingling after reading the title.

  • @FaisalAfroz
    @FaisalAfroz2 жыл бұрын

    Another 🔥 100 sec video.

  • @Billary
    @Billary2 жыл бұрын

    This is so dope. I gotta make a comedy bot soon

  • @balajiv7328
    @balajiv73282 жыл бұрын

    Good video. Post more videos about OpenAI

  • @detaaditya6237
    @detaaditya62372 жыл бұрын

    I saw that account this afternoon! I didn't realize it was a bot until I browsed its profile. Some of its tweet sound like something out of some tech guy, ironically

  • @dishanmadhuranga1808
    @dishanmadhuranga18082 жыл бұрын

    I swear this fireshit gonna be pinnacle of yt tech channels.

  • @MewKnows
    @MewKnows2 жыл бұрын

    I was always interested in making Twitter bots but the oauth part always halts me, I never knew what to do with callbacks and everything lol. Thank you for this!

  • @yokowasis
    @yokowasis2 жыл бұрын

    We need more video like this

  • @digitalnomad4535
    @digitalnomad45352 жыл бұрын

    I’m definitely going to build this

  • @angeldimitrov1353
    @angeldimitrov13532 жыл бұрын

    I had a feeling that ‘Bob’ was ‘you’ even before I saw this video!!

  • @jacobglik5134
    @jacobglik51342 жыл бұрын

    (7:22)"We can now use the twitter client to do things like access the users profile info, or to send a tweet on their behalf, and there's all kinds of other things you can do as well: like send DMs, retweets, or any other pointless activity you can imagine doing on twitter." -i'm dead

  • @kadiroz2254
    @kadiroz22542 жыл бұрын

    You are a mind opener master.

  • @TheJpwzrd
    @TheJpwzrd2 жыл бұрын

    Thank you Lord fireship

  • @TokenArtist
    @TokenArtist Жыл бұрын

    Just like feeding a baby -- bait with the mac & cheese and then switch with the broccoli 🤣good video, thanks

  • @ralphlargo9728
    @ralphlargo972811 ай бұрын

    Thanks man! You saved my job haha

  • @classcofficla1367
    @classcofficla13672 жыл бұрын

    Thanks Jeff.

  • @bishwajyotiroy
    @bishwajyotiroy2 жыл бұрын

    You’re a genius!

  • @TomDoesTech
    @TomDoesTech2 жыл бұрын

    I tried to get some Twitter API creds a while back and they just kept asking questions that I answered in the application and when I answered them in email, they just kept asking the same question, just worded slightly different over and over until I gave up.

  • @zexceed65
    @zexceed652 жыл бұрын

    bro, you are awesome!

  • @lukasschroeter4773
    @lukasschroeter47732 жыл бұрын

    How have you created this folder with firebase init functions ? And where comes this twbot from ? And how you open the workspace wtrhout any folder.

  • @ark5458
    @ark54582 жыл бұрын

    0:33 I'm not ready for this 😭😭 But atleast we'll have bob

  • @ark5458

    @ark5458

    2 жыл бұрын

    Wow this aged poorly

  • @ID_Station
    @ID_Station Жыл бұрын

    Where did you get the functions folder from? Kind of just appeared in the video

  • @roid1510
    @roid15102 жыл бұрын

    Teach Bob to make videos like you do. Ultimate passive income

  • @PGamerX
    @PGamerX2 жыл бұрын

    Wohooo, Loving the video so far

  • @ielyax
    @ielyax2 жыл бұрын

    may I ask what use case have you submitted for your developer account? I'm trying to make an app for my company to manage social media platforms but it got rejected :(

  • @user-bs6jy4tx2k
    @user-bs6jy4tx2k2 жыл бұрын

    Огромное спасибо за дословно обучающий ролик!!

  • @Nurtylek
    @Nurtylek2 жыл бұрын

    Awesome!

  • @chadcrouch8995
    @chadcrouch89952 жыл бұрын

    Super tutorial, and I must say I am always impressed with your content. I see that the boblikescode bot has been terminated? What is the reason behind that?

  • @bergendaa4253
    @bergendaa42532 жыл бұрын

    THANKS

  • @user-bs6jy4tx2k
    @user-bs6jy4tx2k2 жыл бұрын

    Автор молодец!! Выпускайте подобные ролики почаще!!

  • @dx497
    @dx4972 жыл бұрын

    Other youtubers twitter bot in 4 hours Fireship be like: OOhhh fire is here take a bot in 10mins 🔥🔥🔥

  • @DannyBPlays
    @DannyBPlays2 жыл бұрын

    So many of your tuts begin with "start at the command line" but I have no idea where that command line is or how to access it

  • @WarrenHull

    @WarrenHull

    2 жыл бұрын

    If you are trying to follow his tutorials in VSCode, the "command line" is the same as the "terminal". You can access it by going to the "View" menu button and then clicking "Terminal" or using the shortcut Ctrl + BackTick. Another way you could open up the terminal is to press Cmd+Space and search for "Terminal" if you're on a Mac or click the magnifying glass icon next to the start button and search for "Command Prompt" on Windows.

  • @jameshello38
    @jameshello382 жыл бұрын

    Now I know who Bob is, saw your post before watching this video. Rip Bob, you died for us, you're a freaking martyr in fireship community 🙏🙏

  • @yaverjavid
    @yaverjavid2 жыл бұрын

    I ♥️ how cat was used to represent a hacker. You seem to be a beluga fan.

  • @SwapnilSoni
    @SwapnilSoni2 жыл бұрын

    Can you share how these amazing tweets are being made? which combinations are used?

  • @TechnicolorMammoth
    @TechnicolorMammoth2 жыл бұрын

    'Blame Richard Stallman' LMFAO!

  • @itsactuallyaman
    @itsactuallyaman2 жыл бұрын

    How get Callback URL if I'm using python in visual studio code? Please reply

  • @anisking2331
    @anisking23312 жыл бұрын

    I have a request for you... Can you make a markdown preview but build it from scratch like the function that turns the text to html to be built from zero ? With vanilla javascript ?

  • @scott83gmail
    @scott83gmail2 жыл бұрын

    When your bot talks to my bot, you lose your lunch money.

  • @akashrajpurohit97
    @akashrajpurohit972 жыл бұрын

    So you mentioned "You store these access token and refresh token to your database" And later mentioned "so you use refresh token to get new access token, this is done so that your system is not compromised if hacker gets access to your database" I'm confused on the last part, if the hacker have got access to your database then they would also have got access to the users refresh token, which means they can create unlimited access tokens with it right, so how exactly this method of access token + refresh token have helped us securing the credentials? 🤔

  • @dmdesigner_pg
    @dmdesigner_pg2 жыл бұрын

    Whoaa...Man you're lit 🔥

  • @user-bs6jy4tx2k
    @user-bs6jy4tx2k2 жыл бұрын

    Не могу выразить своё счастье словами. Очень давно искал эту информацию. Спасибо огромное!!

  • @lemonhaus7364
    @lemonhaus73642 жыл бұрын

    Is your voice AI generated as some Reddit videos ? Or is yours with some audio compress and protools process? Txs !

  • @friction5001
    @friction50012 жыл бұрын

    Never misses

  • @xerxes-ei9gl
    @xerxes-ei9gl2 жыл бұрын

    😂😂😂the start was just so funny

  • @Mcawsome2490
    @Mcawsome24902 жыл бұрын

    I have been struggling the last couple days go get my own twitter bot up, thanks for the vid!

  • @Cyphron
    @Cyphron2 жыл бұрын

    Can you do wax wallet NFT minting? been trying to look for it for a while

  • @Dorbellprod
    @Dorbellprod2 жыл бұрын

    Please make a tutorial on how to make a ratio AI for Twitter 🥺 u make the best tuts and vids 🙏

  • @aidan2849
    @aidan28492 жыл бұрын

    Hey, would you know how I can create multiple twitter accounts using this software?

  • @MercyFromOverwatch2
    @MercyFromOverwatch22 жыл бұрын

    Jeff is still my favourite tech youtuber

  • @codeaperture

    @codeaperture

    2 жыл бұрын

    Already almost 1.1 million subscribers. Road 2 by June? Then 3 by Dec? Then 5 by 2024 🤣

  • @teuns9
    @teuns92 жыл бұрын

    Great video, but where the AI at (NVM it was Bob's face)

  • @Augdemand
    @Augdemand2 жыл бұрын

    what editor are you using?

  • @ravivarmavelukonda
    @ravivarmavelukonda2 жыл бұрын

    I’ve been watching your videos for a long time now and they are great. I never seen you using typescript in place of JavaScript in your videos. Is there any reason you prefer JavaScript over typescript? Can we see you using typescript in future ?

  • @thisissyedbasim

    @thisissyedbasim

    2 жыл бұрын

    Jeff uses typescript for his professional apps. The reason he chooses javascript for tutorials is he makes short videos. If he uses typescript then adding types will be unnecessary and also many of his audience might not understand typescript. This way both ts and js users can watch his videos and understand

  • @Fireship

    @Fireship

    2 жыл бұрын

    It's mostly about keeping demos simple. I'm going to make some TS specific videos soon tho.

  • @MauritsWilke

    @MauritsWilke

    2 жыл бұрын

    @@Fireship oh thats great timing, I just fully switched to TS and already have had 100 google searches

  • @theway4020
    @theway4020 Жыл бұрын

    Dude how do I follow this as an amateur guy to software. I have not done software not even for a day. I have used the script writer though.... advise plz 🙌

  • @somfierce
    @somfierce2 жыл бұрын

    why does the text on your screen always look so crisp? I'm jealous

  • @agilthoriq2461
    @agilthoriq24612 жыл бұрын

    Hi fireship , how about making some videos about "do we need math to became web delopers? "

  • @PetPulseTVHDxx
    @PetPulseTVHDxx2 жыл бұрын

    Does anyone else having this problem after using 'firebase serve' ? Any solution Thanks There was an error reading functions\package.json: functions\lib\index.js does not exist, can't deploy Cloud Functions

  • @vantheman1wald
    @vantheman1wald2 жыл бұрын

    I'm a simple man, I see Meme Man, I press like

  • @__CodiX__
    @__CodiX__2 жыл бұрын

    i got a question, you use await in your code but there is no async why does it work?

  • @__CodiX__

    @__CodiX__

    2 жыл бұрын

    You just can add an async before (request, response) works similar to this code

  • @renecabuhan1675
    @renecabuhan16752 жыл бұрын

    idol 🙌

  • @nemanjalekic
    @nemanjalekic2 жыл бұрын

    @Jeff starring your own repositories is like liking your own facebook posts ;-P

  • @sonmangaking
    @sonmangaking2 жыл бұрын

    Let’s goo nice work fireship

  • @mudassarm556
    @mudassarm5562 жыл бұрын

    Waiting for the video on Apache Kafka

  • @Arneallan
    @Arneallan2 жыл бұрын

    mvp video

  • @blkpik6746
    @blkpik67462 жыл бұрын

    IDK if you're bot or an real person. Love your content dude ❤️

  • @emmanuelkalibbala510
    @emmanuelkalibbala5102 жыл бұрын

    firebase serve gets stuck at "! functions: The Cloud Firestore emulator is not running, so calls to Firestore will affect production."

  • @Augdemand
    @Augdemand2 жыл бұрын

    at 5:21 how did you open oauth browser? fairly new to this and am a bit confused

  • @nitkarshchourasia2406

    @nitkarshchourasia2406

    8 ай бұрын

    Same question.

  • @beratcan913
    @beratcan9132 ай бұрын

    how I can configure vs code?, so I can use the firebase init functions.

  • @brandonlange2260
    @brandonlange22602 жыл бұрын

    Question.. Why are the keywords that you created top secret? It makes me feel uneasy that I don't know what they are now 😂

  • @Richie_Incognito
    @Richie_Incognito6 ай бұрын

    Does this work better with GPT 4?

  • @vaibhavp224
    @vaibhavp2242 жыл бұрын

    how are you using bash in windows 👀

  • @ackar82
    @ackar822 жыл бұрын

    But if the db gets hacked the refresh token is also in the hand of the hackers so where is the point of that?

  • @emmanuelkalibbala510
    @emmanuelkalibbala5102 жыл бұрын

    You rock 🗿 Banger 💥 In my mother tongue, *Oli wakabi*

  • @6pfk
    @6pfk2 жыл бұрын

    what can you do on firebase for free and do I need card details to sign up. Random quotes of chairman Elon? AI generated?

Келесі