I usually lack any whale humor, but here goes:

     v  v        v
     |  |  v     |  v
     | .-, |     |  |
  .--./ /  |  _.---.|
   '-. (__..-"       \
      \          a    |
       ',.__.   ,__.-'/
         '--/_.'----'`

  T H E    W H A L E
     S L E E P S
       T O N I G H T

On Feb 23, 2009, at 01:52 PM, Zac Bowling wrote:


Script is running now. It has a 1.5 second delay between calls to be
nice to twitter (hope that is enough). Already down about 2,000
people.

using the twyt python library (with some modifications to support the
new social graph api) and simplejson.

-------
from twyt.twitter import Twitter
import simplejson
import time

t = Twitter()
t.set_auth("loic","xxxx")
b = simplejson.loads(t.user_friends_graph())
for i in range(len(b)):
        try:
                t.friendship_destroy(b[i])
                print "%s - unfriending %s" % (i,b[i])
        except Exception:
                #TODO: INSERT ASCII FAIL WHALE
                print "<insert ascii fail whale here!>"
        time.sleep(1.5)

-------

Thanks a ton!

Zac Bowling
http://twitter.com/zbowling
http://zbowling.com/



On Mon, Feb 23, 2009 at 11:15 AM, Alex Payne <[email protected]> wrote:

That's not accurate, Nick. All accounts are expected to maintain a
ratio of followers to following. As long as more people follow you
than you follow in turn, you're good.

On Mon, Feb 23, 2009 at 10:55, Nick Arnett <[email protected]> wrote:


On Mon, Feb 23, 2009 at 10:50 AM, Terry Jones <[email protected]> wrote:

Or if he really does want to start again, just delete the account and
recreate it. That would have a certain appealing symmetry.

Ah, but new accounts can only follow 2,000 people, so I'll bet he doesn't
want that.
Nick



--
Alex Payne - API Lead, Twitter, Inc.
http://twitter.com/al3x


Reply via email to