Skip to content

My Twitter bots: Tens of thousands of followers can’t be wrong

edit: March 17, 2011 I need your help! If you have additional Seinfeld quotes to contribute, or for a list of all of the current Seinfeld quotes, please visit this post.

My current army of twitter bots and the keyword that each one responds to:

I’ve also built a few programs that scrape air quality data from the State of Utah and tweet the results.

@usadebtlevel which tweets the US National Debt and each US Citizen’s share.

And here’s a sneak preview: @SarahEffinPalin was conceived after a friend, Willie Morris (@morewillie) suggested a bot that, lets say, repurposes Sarah Palin’s tweets.  I think @SarahEffinPalin is going to be a hit.

We all know The Big Lebowski is a cult classic and one of the most quoteable movies of all time.  I don’t exactly remember how this started but a long time ago, I thought people who mentioned “Lebowski” in a tweet would appreciate receiving a quote from the movie.  So with nothing but the Twitter API docs and a little bit of python, I built @thebotlebowski, my first auto-responder.  The idea was simple – using urllib2, perform a search for “lebowski”, and iterate through the results.  For each result, retrieve a random entry out of a quotes database and tweet it as a reply to the original tweet.

After a ton of retweets, #ff mentions, replies, and followers, it became pretty obvious that people liked it.  I needed a followup – another infinitely quoteable movie.  Zoolander!  Thus, @ACenterForAnts was born.  Again, my research showed that all mentions of Zoolander on twitter were either references to the movie or Derek Zoolander himself.

Another follow-up was in order.  A friend suggested a Seinfeld one.  Done. Welcome @HelloooooNewman. And then @IAmJacksBot and then the others.  The key was to create bots that use search terms that are not vague – If someone tweets “Full Metal Jacket”, then they’re obviously talking about the movie.  Same with “Fight Club.”

One of the lessons learned was that not everyone who tweets about “GWB” was necessarily referencing the president.  A friend suggested a bot that replies to mentions of GWB with one of George Bush’s self-butchered quotes.  People loved it except for people in New York – hey, I didn’t realize that so many people tweeted about the George Washington Bridge in abbreviated format!  This includes several NYC twitter accounts that automatically post traffic conditions.  The complaints came in quicker than I could add people to the ignore list.  Eventually, the well-loved but polarizing @dubbbya was banned from twitter.  May his quotes live on in infamy.

While the bots have been very well-received, not everyone likes them.  When there were only a handful of bots, I used to monitor their responses.  Not that there are so many, I’ve added an ignore list for just this reason.  To add yourself to the ignore list, either contact me, tweet me, or visit http://neilkodsbots.appspot.com.

Frequently Asked Questions:

Have any celebrities found your bots?

The bots tweet out to celebrities all of the time.  @ACenterForAnts has tweeted Ben Stiller many, many times but Ben has never replied.  Sometimes, the celebrities tweet back.  I don’t actively monitor the mentions and replies to the bots – there are just too many.  My favorite anecdote, so far, is when Adam Baldwin discovered @worldofshit, my Full Metal Jacket bot and immediately triggered it over and over to receive new quotes.  He then started tweeting about the bot to his followers and it quickly picked up steam.  I was thrilled to see that one of the stars of Full Metal Jacket was tweeting so favorably about a program that I wrote that I created @somegrenades in his honor.

If you notice a celebrity or otherwise notable person referencing one of my bots, please let me know.  The mentions that I know about include Q-Tip, Taleb Kweli, and Fred Durst.

But you’re a data geek, not a twitter programmer!  Are you doing anything cool with the data?

Yes!  Every tweet that I find, I log.  For example, since @HelloooooNewman has already sent out over 170,000 replies, I have at least that many incoming tweets mentioning Seinfeld in my logs.  I am able to tell who’s tweeting about Seinfeld, when people are talking about Seinfeld, what they’re saying, and so on and so forth.  I can even tell if certain events, such as the release of a box set or a new event have resulted in an increase of Seinfeld tweets.  For examples of some of the things I’ve done with the twitter data, check out this analysis of Seinfeld Tweets or this word cloud generated from 23,000 tweets about Charlie Sheen.  Please contact me if you’d like to hear more.

Would you create a bot for me/my company/my promotion?

I get asked this all of the time.  The answer is:  It depends.  Lets talk.  Before we go about doing this, we’d need to establish a few ground rules.  I’ve worked very hard to keep the bots entertaining and not spammy.

The tweets don’t include urls or advertisements – Are you making any money off of them?

While the bots don’t generate income directly, they have led to other opportunities and benefits.  For starters, I’ve picked up a ton of quality followers and contacts that I would have never met.  Additionally, through this experience, I’ve learned a great deal about twitter the twitter API, and numerous features of Python that I wouldn’t have normally dived into.  To answer the question, A few companies and web sites have licensed the technology and I’ve created custom bots and twitter searches for them.  I’ve elected to not mention them directly in this post.

I don’t want the bots to reply to my tweets.  Can they ignore me?

Sure, the easiest way to be ignored is to visit http://neilkodsbots.appspot.com and add yourself to the ignore list.  Honor system please!  I didn’t feel it was necessary to ask users to authenticate via twitter just so my application could ignore them.

I’m selling Seinfeld/Zoolander/Lebowski products – will you tweet this link to all of your bots followers?

I also get asked this all of the time.  @HelloooooNewman has over ten thousand followers.  @ACenterForAnts and @TheBotLebowski also combine for another ten thousand followers.  While I won’t send a mention of your product/URL/promotion to their followers, I do have other methods of driving traffic and building awareness to a targeted group of followers.  Lets talk.

May I have the source code?

Since I’ve been using this program for a few not-mentioned commercial purposes, I’m not interested in sharing the secret sauce.  I will, however, let you know it was pretty straightforward to do.  Anyone with a minimum of programming skill should be able to do this.

Will there be more bots?

Always.  I’m always on the lookout for new ideas.  Let me know if you have any.  The next one on my plate will be one for Eastbound and Down.

33 Comments

  1. Ryan

    Next you should create a bot based on the movie “Old School”. So many good quotes!

    Posted on 22-Dec-10 at 8:19 am | Permalink
  2. admin

    I could do an old school bot but what should I be searching for? Not every mention of “Old School” on twitter is a direct reference to the movie? Any ideas?

    Posted on 22-Dec-10 at 8:42 am | Permalink
  3. Here is a similar thing I wrote, but without a single line of code. Used Yahoo Pipes, Twitter Feed and Pastbin to automatically reply to people … Here are the details – http://blog.nparashuram.com/search/label/twitterpipe

    And here is one bot running it – http://twitter.com/infocommando

    Posted on 22-Dec-10 at 8:59 am | Permalink
  4. Takenaka sorato

    Nice Fight club
    I’m Japanese
    Great movie I like it

    Posted on 25-Dec-10 at 10:16 am | Permalink
  5. Jeans

    Make an ” anchorman” bot, you can set the trigger word to be “Ron burgandy”.

    Posted on 25-Dec-10 at 7:26 pm | Permalink
  6. admin

    done! Check out @gunshowtickets!

    Posted on 25-Dec-10 at 8:38 pm | Permalink
  7. Jeans

    Awesome, “anchorman” is one of my favorite movies, so I will be using that bot a lot, i’m already following it (I was the first one)

    Posted on 25-Dec-10 at 9:43 pm | Permalink
  8. Ron Burgundy

    Not cool! I am @ItsRonBurgundy, and if you want to throw down in fisticuffs I’ve got Jack Johnson and Tom O’Leary waitin for ya! Right here!

    Posted on 28-Dec-10 at 12:53 am | Permalink
  9. Imariaprime

    I followed to here from @somegrenades, any little bit of Firefly in my life is quite approved ;]

    Posted on 04-Jan-11 at 6:33 pm | Permalink
  10. Zero Cool

    I can’t believe you haven’t made one for the movie Hackers yet! Pool on the roof must have a leak.

    Posted on 09-Jan-11 at 4:30 pm | Permalink
  11. Right now, Invader Zim could use the help. Hate to comment to just give you another show to add like everyone else.

    With that in mind, I just wanted to say that I’m really impressed that you’ve worked hard to keep the bots non spamming, right now, my twitter is so full of spam I can’t handle it and am on the verge of leaving.

    I respect you a lot. Keep up the great work.

    If your wondering: @Seinfeld brought me here. :)

    David.

    Posted on 09-Jan-11 at 11:39 pm | Permalink
  12. Kevin

    I just have to say i live @worldofshit. Hilarious.

    Posted on 15-Jan-11 at 3:12 pm | Permalink
  13. Hello Postal Employee Newman,

    I would like to speak to you about this so-called fat free yogurt and the amount of time you are spending at the local Kenny Rogers’ Roaster.

    Posted on 18-Jan-11 at 9:26 am | Permalink
  14. Having a fun time with your bots. Ir would be funny if you had a bot where everyone was ‘smited’ in some way for swearing or saying an insult on twitter.

    Posted on 24-Jan-11 at 2:07 am | Permalink
  15. NEIL! you gotta do a monty python one!

    Posted on 30-Jan-11 at 10:03 pm | Permalink
  16. or how about some Smokey quotes from Friday?

    Posted on 30-Jan-11 at 10:09 pm | Permalink
  17. screenname80

    The first rule of the ….

    Posted on 16-Feb-11 at 2:09 pm | Permalink
  18. Great bots, great post.

    Thanks for the inspiration.

    Posted on 17-Feb-11 at 3:22 pm | Permalink
  19. Matt

    You should do a Sons of Anarchy one

    Posted on 18-Feb-11 at 10:47 am | Permalink
  20. Harmy G

    How about the movie “Rounders”plenty of great quotes in that one. Also “Dazed and Confused.”

    Posted on 25-Feb-11 at 2:53 pm | Permalink
  21. What an impressive pursuit
    I am surprised at its’ success
    Oh Well!

    Posted on 06-Mar-11 at 2:43 pm | Permalink
  22. How can I contact you? Have some ideas and want to connect with you.

    Posted on 16-Mar-11 at 1:15 pm | Permalink
  23. You should do an “Office Space” bot. “I’m gonna show her my “O” face….”

    Posted on 21-Mar-11 at 2:05 pm | Permalink
  24. Great idea, can i recommend an Alan Partridge bot? Got loads of memorable quotes from the TV show! “Smell My Cheese”

    Posted on 24-Apr-11 at 3:43 pm | Permalink
  25. Arn

    Hi Neil, how can we get in touch with you for a twitter bot campaign?

    Posted on 26-Apr-11 at 4:47 am | Permalink
  26. admin

    I can be reached at nkodner at gmail dot com. One of these days I’ll add an about/contact page :D

    Posted on 26-Apr-11 at 5:38 am | Permalink
  27. Lisa

    I love you

    Posted on 31-May-11 at 6:51 pm | Permalink
  28. Andrew

    you should do a bot for the show friends.

    Posted on 07-Jun-11 at 12:17 am | Permalink
  29. patty

    Gabe Saporta from the band Cobra Starship completely flipped when he received a reply from the Zoolander bot, and noe he’s freaking out over the Fight Club one (which is my favorite), but anyways, you should definitely make a bot for the Breakfast Club! Everyone’s seen that movie! And the quotes are amazing “You’re a neomaxizwoondweebie.”! That’d be just great :) thanks or coming up with such a good idea :)

    Oh and by the way, is the Bob Dylan bot also yours? That one’s pretty cool too!

    Posted on 07-Jun-11 at 12:36 am | Permalink
  30. Gr8 work, but I’d encourage you to build your next bots with more useful purposes. First idea: monitor the different hashtags #spanishrevolution https://secure.wikimedia.org/wikipedia/en/wiki/2011_Spanish_protests , #ukrevolution, #italianrevolution, #europeanrevolution, etc
    https://secure.wikimedia.org/wikipedia/en/wiki/Template:Anti-government_protests_in_the_21st_century
    and show the stats, point out other hashtags and links to those that mention those, interlink them… help them.

    Posted on 13-Jun-11 at 6:55 am | Permalink
  31. Andy

    Please contact me via email I’m interested in your programming with my bot

    Posted on 03-Sep-11 at 8:34 am | Permalink
  32. Hi Neil,

    I’m in the process of sourcing someone to build a twitterbot for my book which is coming out in late December and I was wondering if you’d be interested in the project?

    The book is called Little Blue People, its the parody autobiography of Grouchy Smurf, following him from the forests of Brussels to fame and fortune in Hollywood. It’s packed with quotes i’d like to share via the twitterbot, so if you’d like more info on the project please let me know.

    Have a great day:)

    Chris

    Posted on 29-Sep-11 at 4:10 pm | Permalink
  33. chungyen chang

    I don’t know if you know him, but have you thought about making a Wesley Willis bot? He’s a really awesome, homeless, schizophrenic musician from the 90s. He passed away in ten years ago but he is still one of my favorites. Look him up, you’ll like him. :)

    Posted on 11-Oct-11 at 8:22 pm | Permalink

3 Trackbacks/Pingbacks

  1. [...] Answer1 Comment • 11:50amHa! @neilkod is responsible for that. He does a number of these: http://www.neilkodner.com/2010/1…Liam Lahey • 1:25pmView 1 Comment Edit Link Text Show answer summary preview when [...]

  2. [...] Neil Kodner does some cool stuff with Twitter data on a semi-regular basis. Here is one example: http://www.neilkodner.com/2010/1… He's got lots of cool posts along these lines that take you step by step through acquiring [...]

  3. [...] point was recently very effectively illustrated by Neil Kodner, who created tens of twitter bots (based on Seinfeld, The Big Lebowski, and more recently Sarah [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*