The goal of this session is to exercise our creativity while learning a bit about api's. We'll show what we've built at the end of our session.
Login to twitter and create a new app.
- Fill out the application details: name, website, description
- Set permissions for your application
- Generate your key/secret and access token if needed (see the documentation of the library below to get an idea of what you may need)
If you get stuck, feel free to ask another pair or flag me down. Make sure, your bot can do one simple task on Twitter before moving on to step 3 and adding functionality.
These libraries attempt to make creating a bot easy. If they do not have the functionality, you're looking for you may want to try a lower-level library like the ones below.
https://github.com/muffinista/chatterbot - ruby
https://github.com/nkirby/node-twitterbot - node
https://github.com/sferik/twitter - ruby
https://github.com/ttezel/twit - node
https://github.com/tweepy/tweepy - python
There's all types of amazing stuff you can do with Twitter bots.
- latest songs from Soundcloud, Spotify
- provide helpful tips & news (responds with weather, traffic or news depending on input)
- entertainment, conversation
- add a natural language interface with watson
Here's a few if you need them. Enjoy!
- https://medium.com/@DebashisBarman/creating-a-twitter-bot-with-node-js-bea760b80bd5#.pxdjayde4
- https://botwiki.org/tutorials/twitterbots/
- http://www.pygaze.org/2016/03/how-to-code-twitter-bot/
- https://videlais.com/2015/03/01/how-to-create-a-basic-twitterbot-in-ruby/
- http://marydickson.com/build-a-twitter-bot-with-python/