15.3: Setting up a Twitter app – Twitter Bot Tutorial

[ad_1]
This video covers how to set up a Twitter app for a bot. How do you sign up and get keys? How do you authenticate with Twitter in a node.js app using the Twit node package? What is Oauth?

All examples:

Twit package:

Contact:

Next video:

Learn JavaScript basics:

Learn Processing basics:

More about data and APIs:

Help us caption & translate this video!


Posted

in

by

Tags:

Comments

30 responses to “15.3: Setting up a Twitter app – Twitter Bot Tutorial”

  1. Shanur Rahman Avatar

    got subscription on lynda just to find out there is such an awesome stuff for free on youtube

  2. abdulkadir osman Avatar

    The last bit about security was great and appreciated! Thanks!

  3. Forgoroe Avatar

    Great video, great addendum! Appreciated

  4. DJ Alixer Avatar

    Thank you for making this fun.

  5. Nick Naumovich Avatar

    I love his ADD, reminds me of myself.

  6. foox2k Avatar

    $ node bot.js
    /home/ubuntu/workspace/proyecto/bot/bot.js:18
    });
    ^

    SyntaxError: Unexpected token )
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:990:3

    please help me

  7. AlbeRCGames Avatar

    var is so… 2015 :')

  8. Aditya Nelakonda Avatar

    Very Very Very Very Very Gud

  9. Its All About Love :) Avatar

    what if i want to make facebook bot then how can i get those key, secret and tokens…????

  10. Jofre Scaricaciottoli Avatar

    Someone knows how to instal p5.js on windows??? plase helppp

  11. akshit bhatia Avatar

    Hi,
    I have entered my consumer_key and other authentication information from the development page as explained but yet when ever i run my js file, the error comes which reads like ' Twit config must include `consumer_key` when using user auth.'
    Kindly assist me with a possible solution.

  12. Parul Atreya Avatar

    I'm getting this error when I try to open the javascript file (bot.js in your case)

    module.js:471
    throw err;
    ^

    Error: Cannot find module 'K:node2hello.js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:393:7)
    at startup (bootstrap_node.js:150:9)
    at bootstrap_node.js:508:3

  13. Parul Atreya Avatar

    I saved a text file as bot.js but can't read it in windows cmd? Any thoughts?

  14. Jeremy Sutton Avatar

    Cheers man, you crack me up. These videos are all awesome and super approachable for learning code. Just a little aside from this comment though… the phrase "maybe you're not even watching this anymore" never actually applies unless the people you've made this video for are only the ones who left earlier… Anyway, back from the aside to the comment …. Keep up the great work!

  15. David Gomez Avatar

    The way you teach keeps the viewer interested and entertained, I love it. This is my first video that i've watched but Subscribed! Keep up the good work!

  16. Dan Haddock Avatar

    Hi Daniel and Coding Train passengers,

    I have a question regarding other API keys. I am planning on using the VimeoAPI.what would I use in place of the twit repo used in this tutorial?

  17. Sara daqiq Avatar

    How can use twitter data (tweets) to respond to a user in messenger bot?
    I love your videos. I made a twitter just to follow along with this.

  18. Thibaut Evrard Avatar

    Thank you for that tutorial Daniel, You are so helpfull!

  19. Thabang Bosaka Avatar

    good day, how come i am having this error Error: Twit config must include `consumer_key` when using user auth., i have all my keys and tokens and veried from dev.twitter.com but still i get that error what could be the cause of this?

  20. Ezequias Dickens Avatar

    I want to list all tweets from an account (more than 200) but it is not working. Could you help me?

    Here is the test code:

    it.only('Followers from @ezequiasrocha', function (done) {
    console.log('start');
    this.timeout(15000);
    T.get('followers/list', {screen_name: 'ezequiasrocha', count: 200}, getData);
    function getData(err, data, response) {
    while (data['next_cursor'] > 0)
    {
    var followers = data.users;
    for (var i = 0; i < followers.length; i++)
    {
    console.log('@' + followers[i].screen_name);
    }

    console.log('next_cursor: ' + data['next_cursor']);
    T.get('followers/list', {screen_name: 'ezequiasrocha',next_cursor: data['next_cursor'] }, getData);
    }
    done();
    }
    });

  21. Animo Avatar

    Hi friend, perfect tutorials! If You ever come to Europe, Belgium, let us know! My family and I will guide You if prefered! 🙂

  22. esparda07 Avatar

    Subscribed!
    You are a very good teacher.
    Thank you.

  23. MasterFlamaster Avatar

    woooooooaaahh…. its the first time i see him programming in js without p5!

  24. Radu Stefan Avatar

    U mot*&k&*3r, u are so awesome! Happy I found your videos now. I have so much to learn from you. Thanks for all the videos that u made, and uploaded in here :±) see u around.

  25. Louis Smith Avatar

    I like how you apologize for your 'sidetrack mumbles,' but sometimes they actually have some pretty good information in them lol

  26. Hans Müller Avatar

    best is, that he finds it interesting to be hacked 😀

  27. Matt Kjer Avatar

    This is the single best series of tutorials i've seen. Thank you so much for all the time and effort you put into these. They're helping me learn immensely.

Leave a Reply

Your email address will not be published. Required fields are marked *