[twitter-dev] Re: 24,386 unfollow calls
If i'm not wrong there's no limit for POST ans as this is a post request type you should have no problems in creating a quick script that makes you unfollow everyone. Thx On Feb 23, 4:41 pm, Zac Bowling zbowl...@gmail.com wrote: So I have kind of weird request. My boss, who is following 24,386 people (and has 22,752 followers) came to me and wanted me to hack something to wipe out all the people he follows so he can start clean again for various reasons. I'm curious if there is any tools internally at twitter that could help with this maybe because this seems to push the limits of what the API was intended for. (If so, you can contact me off list at z...@seesmic.com) If not, the code is fairly trivial to do (I already have something that does something similar in fact), but I don't want to set off any alarms if I make 24,385 unfollow requests and several requests to pull his social graph down as it runs. I can also throttle it as I was planning to do and do it across a few days. Thanks, Zac Bowlinghttp://twitter.com/zbowlinghttp://zbowling.com/
[twitter-dev] Re: 24,386 unfollow calls
Zac, I would space the calls a bit, but I've been told by Alex previously that a mass unfollow wouldn't be limited. -damon -- http://twitter.com/damon On Mon, Feb 23, 2009 at 10:41 AM, Zac Bowling zbowl...@gmail.com wrote: So I have kind of weird request. My boss, who is following 24,386 people (and has 22,752 followers) came to me and wanted me to hack something to wipe out all the people he follows so he can start clean again for various reasons.
[twitter-dev] Re: 24,386 unfollow calls
Hi Zac Zac == Zac Bowling zbowl...@gmail.com writes: My boss, who is following 24,386 people (and has 22,752 followers) came to me and wanted me to hack something to wipe out all the people he follows so he can start clean again for various reasons. ... you can contact me off list at z...@seesmic.com You have a Seesmic address, and your boss follows 24K people and wants to unfollow them all H. So, uh, why does Loic hate us? :-) Not so long ago we were all his friends! You might suggest he try Tweetdeck. That would let him nicely keep up to date with just the people and topics he really wants to read, without the mass unfollow. Of course you guys might have to buy Tweetdeck too before that could happen :-) Or if he really does want to start again, just delete the account and recreate it. That would have a certain appealing symmetry. Regards, Terry
[twitter-dev] Re: 24,386 unfollow calls
On Mon, Feb 23, 2009 at 10:50 AM, Terry Jones terry.jo...@gmail.com 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
[twitter-dev] Re: 24,386 unfollow calls
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 nick.arn...@gmail.com wrote: On Mon, Feb 23, 2009 at 10:50 AM, Terry Jones terry.jo...@gmail.com 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
[twitter-dev] Re: 24,386 unfollow calls
Haha, being that you know who I work for and the we own Twhirl, I probably shouldn't comment about Tweetdeck. :-) Loic loves everyone, but he had an auto-follow bot that followed everyone that followed him. Got a little crazy. The biggest issue was Zac Bowling http://twitter.com/zbowling http://zbowling.com/ On Mon, Feb 23, 2009 at 10:50 AM, Terry Jones terry.jo...@gmail.com wrote: Hi Zac Zac == Zac Bowling zbowl...@gmail.com writes: My boss, who is following 24,386 people (and has 22,752 followers) came to me and wanted me to hack something to wipe out all the people he follows so he can start clean again for various reasons. ... you can contact me off list at z...@seesmic.com You have a Seesmic address, and your boss follows 24K people and wants to unfollow them all H. So, uh, why does Loic hate us? :-) Not so long ago we were all his friends! You might suggest he try Tweetdeck. That would let him nicely keep up to date with just the people and topics he really wants to read, without the mass unfollow. Of course you guys might have to buy Tweetdeck too before that could happen :-) Or if he really does want to start again, just delete the account and recreate it. That would have a certain appealing symmetry. Regards, Terry
[twitter-dev] Re: 24,386 unfollow calls
On Mon, Feb 23, 2009 at 11:15 AM, Alex Payne a...@twitter.com 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. Oh, thanks. I did a quick search on follow limits and all I came across was the 2,000 number. I'm guessing that 2000 is the limit until you have 2001 followers? So a brand-new account is limited to 2,000, but only until then? That's good to know. Nick
[twitter-dev] Re: 24,386 unfollow calls
The biggest issue was The gold it's in the -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- Don't treat fictional people as if they're real. It only encourages them. -- (*) Obscured by Clouds, Pink Floyd
[twitter-dev] Re: 24,386 unfollow calls
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,) 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 a...@twitter.com 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 nick.arn...@gmail.com wrote: On Mon, Feb 23, 2009 at 10:50 AM, Terry Jones terry.jo...@gmail.com 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
[twitter-dev] Re: 24,386 unfollow calls
I usually lack any whale humor, but here goes: v vv | | v | v | .-, | | | .--./ / | _.---.| '-. (__..- \ \ a| ',.__. ,__.-'/ '--/_.''` T H EW 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,) 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 a...@twitter.com 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 nick.arn...@gmail.com wrote: On Mon, Feb 23, 2009 at 10:50 AM, Terry Jones terry.jo...@gmail.com 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
[twitter-dev] Re: 24,386 unfollow calls
Oh thats awesome! Every now and then I'll get a 503 Bad Gateway error but that is to be expected at least a few times for 24,000+ calls :-) Zac Bowling http://twitter.com/zbowling http://zbowling.com/ On Mon, Feb 23, 2009 at 1:59 PM, Matt Sanford m...@twitter.com wrote: I usually lack any whale humor, but here goes: v vv | | v | v | .-, | | | .--./ / | _.---.| '-. (__..- \ \ a| ',.__. ,__.-'/ '--/_.''` T H EW 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,) 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 a...@twitter.com 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 nick.arn...@gmail.com wrote: On Mon, Feb 23, 2009 at 10:50 AM, Terry Jones terry.jo...@gmail.com 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
[twitter-dev] Re: 24,386 unfollow calls
Why twyt library? I have hacked on twitter API aswell; but I used the http://code.google.com/p/python-twitter/ wrapper from Google. Is there a wiki page that lists all different wrappers and explains why one is to be used over the other? Thanks. On Tue, Feb 24, 2009 at 3:22 AM, Zac Bowling zbowl...@gmail.com 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,) 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 a...@twitter.com 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 nick.arn...@gmail.com wrote: On Mon, Feb 23, 2009 at 10:50 AM, Terry Jones terry.jo...@gmail.com 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 -- Regards, Lakshman becomingguru.com lakshmanprasad.com
[twitter-dev] Re: 24,386 unfollow calls
I see that one but when I hit the download page, it said the last update was Sept 2007, so I looked at the other one on the list, and its last update was Febuary 2009, so I used that one. That's all. Was hoping the new one had the social graph api but it didn't but it was easy enough to add it. Zac Bowling On Mon, Feb 23, 2009 at 2:31 PM, Lakshman Prasad scorpion...@gmail.com wrote: Why twyt library? I have hacked on twitter API aswell; but I used the http://code.google.com/p/python-twitter/ wrapper from Google. Is there a wiki page that lists all different wrappers and explains why one is to be used over the other? Thanks. On Tue, Feb 24, 2009 at 3:22 AM, Zac Bowling zbowl...@gmail.com 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,) 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 a...@twitter.com 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 nick.arn...@gmail.com wrote: On Mon, Feb 23, 2009 at 10:50 AM, Terry Jones terry.jo...@gmail.com 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 -- Regards, Lakshman becomingguru.com lakshmanprasad.com
[twitter-dev] Re: 24,386 unfollow calls
On 2/23/09 4:59 PM, Matt Sanford wrote: I usually lack any whale humor, but here goes: v vv | | v | v | .-, | | | .--./ / | _.---.| '-. (__..- \ \ a| ',.__. ,__.-'/ '--/_.''` T H EW H A L E S L E E P S T O N I G H T OMG. Matt, you win at the Internets. EPIC. -- Dossy Shiobara | do...@panoptic.com | http://dossy.org/ Panoptic Computer Network | http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Re: 24,386 unfollow calls
Hi Zac Loic loves everyone, but he had an auto-follow bot that followed everyone that followed him. Got a little crazy. Sorry, I don't buy that for a second :-) Looks to me like a Twitter personality overhaul. I mean who do you want to be, someone with 24K followers who just follows a very small number of people, or someone at 24K/24K? What's the first (ok, second) thing you look at when you're assessing a Twitter user's page? Just when you think the old-fashioned concept of friendship, as translated to the online world, couldn't be more thoroughly or cynically degraded... :-) Terry
[twitter-dev] Re: 24,386 unfollow calls
On Feb 23, 11:07 pm, Zac Bowling zbowl...@gmail.com wrote: That's all. Was hoping the new one had the social graph api but it didn't but it was easy enough to add it. I'll add this to twyt tomorrow. Or even sooner if you send me your patch :-) Cheers, -- Andy Price
[twitter-dev] Re: 24,386 unfollow calls
I'm shocked by the fall out today in the twitterverse about Loic now only following 22 people right now. The @loic traffic is amazing. Scoble is battling with him. Pretty interesting. My patch stinks :-) don't have gnu diff around to give you a proper patch. I just added these two functions to twyt\twitter.py's Twitter class: def user_friends_graph(self, id=None): Returns social graph of friends as json array if id is not None and id 0: raise TwitterException(User ID out of range) handler = u'friends/ids.json' data = [] if id: data.append((id, id)) return self.get(data, handler, doauth=True) def user_followers_graph(self, id=None): Returns social graph of followers as json array if id is not None and id 0: raise TwitterException(User ID out of range) handler = u'followers/ids.json' data = [] if id: data.append((id, id)) return self.get(data, handler, doauth=True) Zac Bowling http://twitter.com/zbowling http://zbowling.com/ On Mon, Feb 23, 2009 at 10:44 PM, Andrew Price welshb...@gmail.com wrote: On Feb 23, 11:07 pm, Zac Bowling zbowl...@gmail.com wrote: That's all. Was hoping the new one had the social graph api but it didn't but it was easy enough to add it. I'll add this to twyt tomorrow. Or even sooner if you send me your patch :-) Cheers, -- Andy Price
[twitter-dev] Re: 24,386 unfollow calls
I've committed this to twyt's bzr repository with minor tweaks (comments and method names) and credited you in the commit log. It'll be included in the next release. Many thanks. On Feb 24, 7:12 am, Zac Bowling zbowl...@gmail.com wrote: I'm shocked by the fall out today in the twitterverse about Loic now only following 22 people right now. The @loic traffic is amazing. Scoble is battling with him. Pretty interesting. My patch stinks :-) don't have gnu diff around to give you a proper patch. I just added these two functions to twyt\twitter.py's Twitter class: def user_friends_graph(self, id=None): Returns social graph of friends as json array if id is not None and id 0: raise TwitterException(User ID out of range) handler = u'friends/ids.json' data = [] if id: data.append((id, id)) return self.get(data, handler, doauth=True) def user_followers_graph(self, id=None): Returns social graph of followers as json array if id is not None and id 0: raise TwitterException(User ID out of range) handler = u'followers/ids.json' data = [] if id: data.append((id, id)) return self.get(data, handler, doauth=True) Zac Bowlinghttp://twitter.com/zbowlinghttp://zbowling.com/ On Mon, Feb 23, 2009 at 10:44 PM, Andrew Price welshb...@gmail.com wrote: On Feb 23, 11:07 pm, Zac Bowling zbowl...@gmail.com wrote: That's all. Was hoping the new one had the social graph api but it didn't but it was easy enough to add it. I'll add this to twyt tomorrow. Or even sooner if you send me your patch :-) Cheers, -- Andy Price