A Twitter Bot in One Line of Code

Yep! It really IS possible with only one line of BASH (Terminal) code using the new Twitter Streaming API. Using a series of chained commands, this Twitter Bot listens for occurrences of ‘one line’ in the Twittersphere and will follow that person.

Here’s a version with some extra space for readability (does not really work with this extra space):

Note: This is just to display how more easy and easy it is to write bots/agents. Yes, this code consists of multiple commands and is over 400 columns. No, I don’t believe in measuring any software in LOC.

Note2: Many years ago I also wrote an IRC client in BASH

This entry was posted in Uncategorized and tagged , , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

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

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Additional comments powered by BackType