http://d.hatena.ne.jp/sugyan/20100423/1271981903 を読んで,Streaming API と yield の組み合わせがカッコイイ気がしたので自動 follow 書いてみた. #!/usr/bin/env python # -*- coding: utf-8 -*- import sys,simplejson,urllib,urllib2,logging from pit import Pit class TwitterClone(object): def __init__(self, user, passwd,url): self.user = user self.passwd = passwd self.url = url self.follow_funcs = [] def createFriend(self,id): url = sel