Project to create a twitter bot
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Twitter Gif Bot

This project creates a Twitter bot that uses machine learning algorithms to turn your tweets into Gifs!

##How it works

The bot uses an uneccessarily complicated method to respond to a user's tweet. It fits the user tweet to an Latent Dirichlet Allocation model trained on a large bank of random tweets downloaded from twitter. This fit returns an topic list of topics under which the tweet falls under and then chooses three random tweets from the list and searches giphly for the tweets. This search returns a gif that is then tweeted back to the user.

##Run You will need your own twitter and Giphy API authentication keys stored in file.

$ source && python

Everytime the program is run it will send tweets at all tweets at the bot since it was last run. You can specify a Tweet ID when calling to only respond to tweets since a certain ID.