How To Create A Twitter Bot With Python | Build a Startup #4

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025

ความคิดเห็น • 582

  • @CSDojo
    @CSDojo  6 ปีที่แล้ว +100

    Here are the links I mentioned in the video:
    - How to install Tweepy and the source code of this project: csdojo.io/twitter
    - PythonAnywhere (a referral link): csdojo.io/py
    And this was part of the:
    - Build a startup series: th-cam.com/play/PLBZBJbE_rGRXBhJNdKbN7IUy-ctlOFxA1.html
    - As well as my Python tutorial series: th-cam.com/play/PLBZBJbE_rGRWeh5mIBhD-hhDwSEDxogDg.html
    Also, you can find me on Twitter and Instagram @ykdojo!

    • @naushadansari708
      @naushadansari708 6 ปีที่แล้ว

      can u make a whatsapp bot using python?

    • @cllove7597
      @cllove7597 6 ปีที่แล้ว

      勉強になりました

    • @hitmovies8369
      @hitmovies8369 6 ปีที่แล้ว +1

      CS Dojo can you please make a video about how to make a game with a menu in c++

    • @nicholassaephanh4407
      @nicholassaephanh4407 6 ปีที่แล้ว

      Atom is pronounced similar to the name Adam. You got it right the second time!

    • @b11918
      @b11918 6 ปีที่แล้ว

      after giving the keys it telling weepy.error.TweepError: [{u'message': u'Bad Authentication data.', u'code': 215}]

  • @sanelemtshengu6257
    @sanelemtshengu6257 6 ปีที่แล้ว +38

    This is my favourite programing channel. The details covered are awesome.

  • @pgmz
    @pgmz 6 ปีที่แล้ว +28

    Your coding interview videos have helped me a lot, and this type of videos about watching you develop stuff, are amazing. Congrats and thanks for this content!

  • @jamesrabe4391
    @jamesrabe4391 5 ปีที่แล้ว +8

    I normally don't comment on these videos but this was so extremely helpful and easy to follow!!!

  • @oluwaseyifunmisamuel3728
    @oluwaseyifunmisamuel3728 4 ปีที่แล้ว +1

    This has been my best programming tutorial channel ever

  • @EM8844
    @EM8844 5 ปีที่แล้ว +4

    I havvent watched it fully but you are so good at making things simple without any extra "bs"! I love it! Also I love your mindset as how you like to try things to find out what they do.

  • @Zer0-0
    @Zer0-0 4 ปีที่แล้ว +2

    I like how you explain how your understood the solutions instead of just telling us what to do!

  • @meanmetrics
    @meanmetrics 6 ปีที่แล้ว +105

    I learned so much... my brain is processing.

  • @hanniep8489
    @hanniep8489 5 ปีที่แล้ว +10

    Thank You CS Dojo!! Using this tutorial, I have made my own twitter bot and modified the code to fit my project needs. Thank you for this and I hope you will post more tutorials soon!

  • @anuragd398
    @anuragd398 4 ปีที่แล้ว +1

    Thanks Yk Because Of you I created A twitter Bot

  • @prachisharma8267
    @prachisharma8267 6 ปีที่แล้ว +2

    Just tried this bot and it's working perfectly! Thanks Dojo for teaching this..

  • @charankumarreddy5693
    @charankumarreddy5693 6 ปีที่แล้ว +2

    Hi JK or CS Dojo
    I am Charan from India and now you are my inspiration to computer languages and currently I am learning python language from your your channel and they are very helpful,useful to me and it is very easy to understand and learn
    Thank you for your tutorials

  • @pritampatra6077
    @pritampatra6077 6 ปีที่แล้ว +31

    I have been following you since u were having 200k subs...Love your work...just one request , if you can make videos on "python for Machine learning " or a video on how to start with Machine learning ..❤

    • @michaelbryansumner
      @michaelbryansumner 5 ปีที่แล้ว +2

      Try the channel "Siraj Raval" he is also a great guy out there! Does the 'watch me build a startup' vids too :)

    • @raghav7893
      @raghav7893 4 ปีที่แล้ว +1

      i m new to this channel nd i saw ur comment then i realized csdojo had made a vid on machine learning it just shows he listens to people so good

    • @akhlxd
      @akhlxd 4 ปีที่แล้ว +1

      @@michaelbryansumner that comment did not age well

  • @justinhamilton8647
    @justinhamilton8647 4 ปีที่แล้ว +8

    Thank you so much! I’m learning programming and this is just incredible.

  • @andreaskoszegi257
    @andreaskoszegi257 3 ปีที่แล้ว

    Really like it, that you show a preview of the final result

  • @DarElBarka
    @DarElBarka 4 ปีที่แล้ว

    Dojo - you are good. I have been watching u for week now now. Learning Python.

  • @Beatsmithdotorg
    @Beatsmithdotorg 2 ปีที่แล้ว

    I love you man. Long time follower first time poster.

  • @thevoyageof67
    @thevoyageof67 5 ปีที่แล้ว +1

    I got access right away. It felt awesome

  • @janatako_aawaj
    @janatako_aawaj 3 ปีที่แล้ว

    I learnt more about Twitter developer mode than Python on this video. Anyways great video.

  • @patrickschnurbusch8319
    @patrickschnurbusch8319 6 ปีที่แล้ว +2

    Kinda wished this was in a sublime text editor instead. The syntax highlighting makes it easier to follow along opposed to the monochromatic terminal window. Either way though, great video. Really enjoyed it CS DoJo!

  • @alexjjgreen
    @alexjjgreen 6 ปีที่แล้ว +1

    This video is 35 mins long, I've so far spent 3 hours resetting the env to get tweepy to work and another 4 hours just messing around with all the different things in the tweepy API. Way too much fun.

    • @CSDojo
      @CSDojo  6 ปีที่แล้ว +1

      Haha yeah, the setup always takes time huh

  • @a.c.vermillion
    @a.c.vermillion 6 ปีที่แล้ว +3

    A very cool video! Keep up the great work!

  • @thompsonpaulus5450
    @thompsonpaulus5450 4 ปีที่แล้ว +9

    Im glad that I watched from tutorial 1 until 15.

    • @eswarspython2743
      @eswarspython2743 3 ปีที่แล้ว +2

      Can you able to understand and done this project after those 15 videos

    • @thompsonpaulus5450
      @thompsonpaulus5450 3 ปีที่แล้ว +1

      @@eswarspython2743 Hi, Yaa. There was part which I need to repeat watching, like robot topic. You may watch other channel or complement with programming book as well to have better understanding.

    • @eswarspython2743
      @eswarspython2743 3 ปีที่แล้ว +1

      @@thompsonpaulus5450 have you completed learnt python

    • @thompsonpaulus5450
      @thompsonpaulus5450 3 ปีที่แล้ว +1

      @@eswarspython2743 I think no. Still have many things to learn. What are offered here are basic. But really help to build application

    • @eswarspython2743
      @eswarspython2743 3 ปีที่แล้ว

      @@thompsonpaulus5450 are you a student

  • @thegreedy211
    @thegreedy211 5 ปีที่แล้ว

    Im definitely subscribing brooo!! Thanx for sharing all your experience you know about the python language. Keep up the good work! Greatings from Dominican Republic

  • @GameMovies999
    @GameMovies999 6 ปีที่แล้ว +2

    Great haha! I made my first twitter bot, so excited :D

    • @mrinmoyshovon9948
      @mrinmoyshovon9948 6 ปีที่แล้ว +1

      How much time did it take for the twitter developer account approval?

    • @GameMovies999
      @GameMovies999 6 ปีที่แล้ว +1

      @@mrinmoyshovon9948 Instantly

  • @amoghdesai9138
    @amoghdesai9138 5 ปีที่แล้ว +1

    Amazing video! Thanks for recording such cool stuff.

  • @haythamkenway8343
    @haythamkenway8343 6 ปีที่แล้ว

    You explain very well and concise

  • @fedahussainmuzaffari1910
    @fedahussainmuzaffari1910 6 ปีที่แล้ว

    you are the best, Yk!

  • @sakshamjain7984
    @sakshamjain7984 6 ปีที่แล้ว

    Really man
    You are a good teacher

  • @alialzahrani1541
    @alialzahrani1541 2 ปีที่แล้ว +6

    The permissions tap doesn't exist any more in their site.
    It is quite confusing how to change the permissions to read and write it seems that there is no way to do so.. Any help?

    • @mattdeemer628
      @mattdeemer628 2 ปีที่แล้ว

      Hey did you ever figure out how to get around this

  • @abdelbakikrebbaza8598
    @abdelbakikrebbaza8598 6 ปีที่แล้ว

    I want to say thanks to you . you're a great person keep going . we love ya

  • @boro5659
    @boro5659 6 ปีที่แล้ว +14

    I tried with 3.7.1 and worked perfectly!
    They might have added that feature now

  • @chethankumar2958
    @chethankumar2958 6 ปีที่แล้ว +1

    very well explained!!! Good job man

  • @priyadarshankumar1352
    @priyadarshankumar1352 6 ปีที่แล้ว

    You are awesome and please start teaching a Object oriented programming in python a lot of my class friends are waiting for this ,please . Love from India.

    • @CSDojo
      @CSDojo  6 ปีที่แล้ว

      I already have a few videos on that-- have you seen them?

  • @fast2letgo
    @fast2letgo 6 ปีที่แล้ว +235

    Your channel name reminds me of CS:GO

  • @thevoyageof67
    @thevoyageof67 5 ปีที่แล้ว +1

    Awesome video

  • @mithileshtiwari9255
    @mithileshtiwari9255 6 ปีที่แล้ว +1

    Awesome content, everything is explained so nicely.
    Please make videos on Iterators in Python

  • @sauravchamoli1605
    @sauravchamoli1605 6 ปีที่แล้ว +3

    Great work. Cs dojo.

  • @georgekrax
    @georgekrax 4 ปีที่แล้ว

    Awesome tutorial! Really helpful

  • @PraveenKumar-ft2kr
    @PraveenKumar-ft2kr 6 ปีที่แล้ว

    So nice great job.. Thank you Dojo🤗👌

  • @TheSubhadipMondal
    @TheSubhadipMondal 6 ปีที่แล้ว

    Great work sir..... I got a good knowledge... thanks

  • @TortoRacoon
    @TortoRacoon 6 ปีที่แล้ว +1

    I am following the playlist here, so, can we use the Jupiter Notebook for this?

  • @TG47GRG
    @TG47GRG 6 ปีที่แล้ว

    love these videos! :D Can't wait to play around with this soon..

  • @angeloabritaa
    @angeloabritaa 5 ปีที่แล้ว

    Good tutorial, congratulations from Brazil

  • @alexandregagne4151
    @alexandregagne4151 5 ปีที่แล้ว +2

    Thank you so much. Good job, help alot!

  • @marktzy5275
    @marktzy5275 6 ปีที่แล้ว +1

    *Thanks CS dojo 💖💗*

  • @atprra
    @atprra 5 ปีที่แล้ว

    Thank you so much for this super useful video!

  • @millenniumbismay382
    @millenniumbismay382 6 ปีที่แล้ว

    Thank you so much YK :) Appreciate your effort and it was my first twitter bot so ofcourse tweaking was fun .:)

    • @manikantaredddy
      @manikantaredddy 4 ปีที่แล้ว

      Is it worked for you

    • @millenniumbismay382
      @millenniumbismay382 4 ปีที่แล้ว

      @@manikantaredddy yeah. It did. You can check my github - github.com/millenniumbismay/twitter_bot for this. Thanks.

    • @manikantaredddy
      @manikantaredddy 4 ปีที่แล้ว

      @@millenniumbismay382 can u send me the code to my gmail

  • @Mgkayoutube
    @Mgkayoutube 6 ปีที่แล้ว +2

    Favorite channel ...bro nice tutorial

  • @sachinvishwakarma6607
    @sachinvishwakarma6607 6 ปีที่แล้ว

    You are legend of cs and now you are become a ideal for me😍😍😍😍😍😍😍😍😍😍😍😍😍

  • @Pyxelles
    @Pyxelles 6 ปีที่แล้ว +1

    Hi, I like your videos and find them interesting. However can you make a video explaining the differences between:
    1. A programmer, developer and coder.
    2. The difference between programming and coding or are they the same thing? Or is coding a step in a programming project?
    3. Is a programming coding and vice versa?
    I'm a beginner and found a lot of conflicting information as some people use the terms interchangeably and others state there are differences. However I have not found any videos giving clear explanations and differences between them! Thanks.

    • @spiralingsphere3785
      @spiralingsphere3785 2 ปีที่แล้ว +1

      coder = beginner, programmer and dev is someone who can look at a program and go OH i can try to fix / better this. Software engineer= makes stuff.
      2. Coding means i can make basic sentences, programming means i can make some programs or in most cases apply new things to an existing program.
      3. i guess

  • @our_nanco6291
    @our_nanco6291 6 ปีที่แล้ว +4

    Thank You Man, it really helps.

    • @CMTEQ
      @CMTEQ 5 ปีที่แล้ว

      it seems like the hashtag blue color is not working

  • @adharshm6808
    @adharshm6808 6 ปีที่แล้ว

    Great work sir

  • @019KADESH
    @019KADESH 5 ปีที่แล้ว +1

    I love the page for running python without installing it! Definitively will recommend it and use it myself a lot!

  • @sharadkumarsingh8972
    @sharadkumarsingh8972 6 ปีที่แล้ว +2

    50 views 88 likes......... You deserve it

  • @peterchow172
    @peterchow172 4 ปีที่แล้ว

    Great video!!

  • @atreyeedatta2363
    @atreyeedatta2363 6 ปีที่แล้ว +1

    Your homepage at 1:36 had so many math links on them it made me so happy haha

  • @farjallahhaythem5675
    @farjallahhaythem5675 6 ปีที่แล้ว

    i love this guyyy

  • @kakuut8148
    @kakuut8148 6 ปีที่แล้ว +2

    This is great! Thank you so much!

  • @adityasihare3887
    @adityasihare3887 6 ปีที่แล้ว

    Sir please continue it it really help to me

  • @rgenericson5361
    @rgenericson5361 6 ปีที่แล้ว

    Very cool! Thx for the info! Much appreciated!

  • @Guerino
    @Guerino 5 ปีที่แล้ว

    Merci beaucoup ! Vidéo qualitative.

  • @Hamid-uf6zn
    @Hamid-uf6zn 6 ปีที่แล้ว +11

    Wow !
    I love cs dojo
    Love you yk
    Love from Pakistan
    Love from peshawar
    Love from 14 year old boy
    Love love love

  • @jhonatansantofimio3764
    @jhonatansantofimio3764 2 ปีที่แล้ว +1

    Can the bot be created only when #helloword is used without the twitter user needing to put my @username in the tweet? For example, if the tag is #videogames, all the publications that have this #tag can receive a response?

  • @hurry1cane422
    @hurry1cane422 5 ปีที่แล้ว

    How and where did you learn Python? You have inspired me to learn python now because i want to get a programming job.

  • @hamzaker829
    @hamzaker829 2 ปีที่แล้ว

    OMG this is so good.

  • @ProgrammerCpp1999
    @ProgrammerCpp1999 6 ปีที่แล้ว

    Please make videos other then python because many people don't know much about python so it will be useful for other people also

    • @CSDojo
      @CSDojo  6 ปีที่แล้ว

      ok sounds good

  • @iritesh
    @iritesh 6 ปีที่แล้ว

    bro, this is so easy

  • @deepakupreti9195
    @deepakupreti9195 6 ปีที่แล้ว

    You are champ. Superb.

  • @kevinle4977
    @kevinle4977 4 ปีที่แล้ว +3

    As a beginner, I’m curious to know: he’s been using Jupyter notebook for all the tutorials, is there a reason he doesn’t use it here? And can it be done w Jupyter?

    • @inaki.rodriguez
      @inaki.rodriguez 4 ปีที่แล้ว

      this is a good question. It would be great if CS Dojo answers it.

    • @NervylHraje
      @NervylHraje 4 ปีที่แล้ว +1

      Hello, the advantages of Jupyter notebook are that its easy to teach, learn with it and share data. For actual programming, people use different enviorments. One option is PyCharm, which is only for Python and is ready to go from the package (it is quite heavy tho). Other lighter options are Visual Studio Code, Sublime text and more. Do a bit of research. I personally recommend VSC: its lightweight and fast; is widely supported with tons of extensions; is easy to setup in less then 10mins. Happy coding.

    • @kevinle4977
      @kevinle4977 4 ปีที่แล้ว

      Jakub Kučera thank you!

    • @kevinle4977
      @kevinle4977 4 ปีที่แล้ว

      Jakub Kučera is VSC what he uses in this video?

  • @rhac79
    @rhac79 6 ปีที่แล้ว

    Hello Sir, Small performance improvement instead of storing last seen id for every tweet after last seen id in a file, store it in a variable and after the end of for loop then store it in a file.

  • @EM8844
    @EM8844 5 ปีที่แล้ว +4

    question regarding this line: mentions = api.mentions_timeline(last_seen_id, tweet_mode='extended')
    How does the function know that "last_seen_id" is actually the "since_id" parameter instead of any other possible parameters?
    I think Im confused

    • @Yoko4797
      @Yoko4797 5 ปีที่แล้ว

      Same question here.If you find the answer, please reply.

    • @hortonheard
      @hortonheard 3 ปีที่แล้ว

      @@Yoko4797 anyone ever find this answer

  • @TortoRacoon
    @TortoRacoon 6 ปีที่แล้ว

    When I try any of this (no matter if is Jupiter notebook or PythonAnywhere) I get errors like:
    >>> python3 --version
    Traceback (most recent call last):
    File "", line 1, in
    NameError: name 'python3' is not defined
    >>> python --version
    Traceback (most recent call last):
    File "", line 1, in
    NameError: name 'python' is not defined

    • @KeenalShah
      @KeenalShah 5 ปีที่แล้ว

      You need to install python first from its official website, if you have done that already and you are using windows, try to do python --version from powershell, cmd or idle and it should not give you an error anymore

  • @dr.kz1190
    @dr.kz1190 6 ปีที่แล้ว +2

    Why don't you tech on Python? You are the best

    • @808.sfx_
      @808.sfx_ 6 ปีที่แล้ว +1

      He has a playlist, him teaching it

  • @yandarcy7567
    @yandarcy7567 6 ปีที่แล้ว

    very useful! thank you

  • @patrick_wade
    @patrick_wade 2 ปีที่แล้ว

    a great watch!......im trying to auto DM a new follower, id like to know how to do this but cant seem to find a definitive lesson on this. any chance on a quick lesson>?

  • @lydiakipkorir4065
    @lydiakipkorir4065 4 ปีที่แล้ว +1

    last_seen_id = int(f_read.read().strip())---This line is receiving the error below.
    invalid literal for int() with base 10:
    How can I solve it changing to float doesn't work.?

  • @haircarewithlaeticia5058
    @haircarewithlaeticia5058 5 ปีที่แล้ว

    Thankyou YK!

  • @pablowasserman
    @pablowasserman 4 ปีที่แล้ว

    Very useful!!!! I just wished you made the video longer and explained all the stuff you skipped

  • @tiktokers8218
    @tiktokers8218 6 ปีที่แล้ว +4

    You are my inspiration really you come in dreams❤ keep upload and please back your data structure and algorithms courses you are great man love you and also please recommend us some resources for web development and how we we become love you❤❤
    Thanks yk ❤❤❤

  • @hossainurrahaman
    @hossainurrahaman 6 ปีที่แล้ว

    Please continue the Django series @CS Dojo

  • @jobelixte
    @jobelixte 6 ปีที่แล้ว

    I'm slowly working my way to being able to make this

  • @manishagrawal2211
    @manishagrawal2211 6 ปีที่แล้ว +2

    Hello Sir, how can we return an integer count for the string which is repeatedly used in another string.
    For e.g. Coded String Tom is Tom and Jerry is also Tom
    Common String : Tom
    and we need to return the integer value of repeated use of common string generally useful for military application.

    • @НикитаЖданов-ш2м
      @НикитаЖданов-ш2м 6 ปีที่แล้ว +1

      to return most common string you can use text.split() - this will make list where string it's used on is split by symbol, witch u can concrete as parameter of split(). Then you can write function to iterate this list and look for copies, if i remember it right there is a method list.count('common word') witch return number of occurances. i.e. of your:
      example_str = 'Tom is Tom and Jerry is also Tom'
      list_exp = example_string.split()
      most_common = ''
      max_ocur = 0
      for word in list_exp:
      if max_ocur < list_exp.count(word):
      max_ocur = list_exp.count(word)
      most_common = word
      most_common will be 'Tom' and max_ocur will be 3

  • @saitaro
    @saitaro 6 ปีที่แล้ว +1

    Where's the next video dude...
    :P
    Thanks for what you do, man. I'm really interested in REST framework usage video!

  • @sunminkim7509
    @sunminkim7509 6 ปีที่แล้ว +4

    Hi YK! While I was following your video, I was rejected by Twitter account for applying a developer account. I am still not sure what I should write there. Initially, I wrote that I want to practice programming and I am following a tutorial video for a Twitter bot. I think if I get rejected next time, I won't be able to apply again. Is there any tip for writing 'use case' in the application form?

  • @robertli3600
    @robertli3600 4 ปีที่แล้ว

    A small tip for everyone, if it says module not found, it may be because you didn't install Python properly. You should uninstall and reinstall AND MAKE SURE TO CHECK THE BOX THAT ADDS PYTHON TO THE PATH. I spent countless hours an asked for the help of my step dad just to realise I didn't install Python properly the first time.

  • @wise_nut
    @wise_nut 6 ปีที่แล้ว

    Heyyy great job, :D

  • @lfb640
    @lfb640 6 ปีที่แล้ว +7

    Will you make a Udemy course? I really think that you can break the way courses work, with you ability

    • @CSDojo
      @CSDojo  6 ปีที่แล้ว +3

      Well I already have one! csdojo.io
      But yes, I would like to make more in the future

    • @harshagarwal3855
      @harshagarwal3855 6 ปีที่แล้ว

      Udemy courses are paid, so please no
      But if he wants it, then he can make it

  • @RegularAdventurer711
    @RegularAdventurer711 11 หลายเดือนก่อน

    can you do it with windows terminal because they seem to be different. thanks

  • @benong1147
    @benong1147 5 ปีที่แล้ว

    in terms of website, can we use any website ??

  • @eytanprod
    @eytanprod 2 ปีที่แล้ว

    One question for all, for me, the mentions timeline comes up with error 401 invalid or expired token. Any Idea what this means? Thanks in Advance.

  • @lohxinru3021
    @lohxinru3021 6 ปีที่แล้ว

    Omg you are going to achieve 1m subscribers

    • @CSDojo
      @CSDojo  6 ปีที่แล้ว

      Thank you! I hope so :)

    • @harshmirdhwal
      @harshmirdhwal 5 ปีที่แล้ว

      And he really achieved so!!!

  • @ahlan3609
    @ahlan3609 3 ปีที่แล้ว +3

    Did anyone else have trouble getting access to this because of permissions? I only have Essential Access. Would I need to get Elevated Access? I already applied for it but no word back yet.

    • @kevril4143
      @kevril4143 2 ปีที่แล้ว

      I know this is old but did you need to get elevated access?

  • @immiedwardian
    @immiedwardian 5 ปีที่แล้ว

    Please make a series on how to use GUI frameworks( creating small desktop apps) while using python code.

  • @Real_Luwabi
    @Real_Luwabi ปีที่แล้ว

    What brand are you glasses?

  • @alipoetry1626
    @alipoetry1626 6 ปีที่แล้ว

    Oh Cs Dojo Sir i got a small question for you?
    Are you actually a machine learning engineer or expert in it?

  • @paracosmic.spirit
    @paracosmic.spirit 6 ปีที่แล้ว +1

    Hi YK !😊👍

  • @JeissonPerez
    @JeissonPerez 6 ปีที่แล้ว

    Excelent, thanks for shared

  • @level1245
    @level1245 5 ปีที่แล้ว

    are you gonna continue with tutorial or is that all to learn in python if no can you tell where i can learn more

  • @sartajjamalchowdhury5281
    @sartajjamalchowdhury5281 4 ปีที่แล้ว

    Thanks a lot man