I have this block of code that gets my twitter followers using Twython. How would I modify this to instead do:
"Get all your twitter followers who do not appear on your muted followers list" ?
I tried doing a request twice, one for followers, and one for twitter.list_mutes, then comparing the two lists as sets. But the twitter api wasn't too happy about that.
Suggestions?
followers = []
next_cursor = -1
while(next_cursor):
get_followers = twitter.get_followers_list(screen_name=username, count=200, cursor=next_cursor)
for follower in get_followers["users"]:
followers.append(follower["screen_name"].encode("utf-8"))
next_cursor = get_followers["next_cursor"]
print "%s followers found" % str(len(followers))