rlr (owner)

Revisions

  • 149df8 rlr Wed May 13 18:44:13 -0700 2009
  • adc646 rlr Wed May 13 18:22:37 -0700 2009
  • 85b047 Wed May 13 18:21:05 -0700 2009
  • 2d697a Wed May 13 17:59:36 -0700 2009
gist: 111409 Download_button fork
public
Description:
py script to find out which twitter users aren't following your back
Public Clone URL: git://gist.github.com/111409.git
Embed All Files: show embed
no_follow_back.py #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from twitter.api import Twitter
 
USERNAME = 'r1cky' # set to your/any username
 
twitter = Twitter() # username/password not required for these calls
friends = twitter.friends.ids(screen_name=USERNAME)
followers = twitter.followers.ids(screen_name=USERNAME)
guilty = [x for x in friends if x not in followers]
 
print "There are %s tweeps you follow who do not follow you" % len(guilty)
 
for user_id in guilty:
    user = twitter.users.show(user_id=user_id)
    print "%s follows %s and has %s followers." % \
              (user['name'], user['friends_count'], user['followers_count'] )