4 ms·
Obligatory perl example, pretty messy: U="onelinebot:one.onelinebot";curl -d 'track=obama' http://stream.twitter.com/track.json http://stream.twitter.com/track
by peterwwillis 17y ago
Obligatory perl example, pretty messy:
U="onelinebot:one.onelinebot";curl -d 'track=obama' http://stream.twitter.com/track.json http://stream.twitter.com/track.json -u$U|perl -ne'/\"screen_name\":\"([^"]+)\"/&&`curl -d "" http://twitter.com/friendships/create/$1.json?follow=true http://twitter.com/friendships/create/$1.json?follow=true -u$U`'