Last active
December 20, 2015 06:38
-
-
Save holys/6086734 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
from weibo import APIClient | |
from config import APP_KEY, APP_SECRET, CALLBACK_URL, ACCESS_TOKEN, EXPIRES_IN | |
def count_fake(): | |
client = APIClient(app_key=APP_KEY, app_secret=APP_SECRET, | |
redirect_uri=CALLBACK_URL) | |
client.set_access_token(ACCESS_TOKEN, EXPIRES_IN) | |
friends = client.friendships.followers.get(uid='3030991875', count=200) | |
print "您有%d个僵尸粉已被系统屏蔽?" % int(friends.get('total_number') - | |
len(friends.get('users'))) | |
if __name__ == '__main__': | |
count_fake() | |
#Press ENTER or type command to continue | |
#您有11个僵尸粉已被系统屏蔽? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment