News for hackers. Stuff that matters.
Re:A Twitter Bot in One Line of Code by peterwwillis on Friday September 25, 2009 @01:00PM (#843820)
Obligatory perl example, pretty messy:

U="onelinebot:one.onelinebot";curl -d 'track=obama' http://stream.twitter.com/track.json -u$U|perl -ne'/\"screen_name\":\"([^"]+)\"/&&`curl -d "" http://twitter.com/friendships/create/$1.json?follow=true -u$U`'

There are no comments on this comment yet.