About this Blog
Hi, I'm Dominiek, co-founder of a stealth startup, former CTO at Smart.fm and owner of Synaptify Consulting. This blog is about Technology, Innovation and the Web.
-
Previous Articles
In the Past
Additional comments powered by BackType
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