Skip to content

Instantly share code, notes, and snippets.

@cdl
Created October 6, 2014 00:13
Show Gist options
  • Save cdl/e78a5003708f13425d15 to your computer and use it in GitHub Desktop.
Save cdl/e78a5003708f13425d15 to your computer and use it in GitHub Desktop.
consumer_key = 'XXX'
consumer_secret = 'XXX'
access_token_key = 'XXX'
access_token_secret = 'XXX'
import tweepy
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token_key, access_token_secret)
api = tweepy.API(auth)
for follower in tweepy.Cursor(api.followers_ids).items():
api.create_block(follower)
api.destroy_block(follower)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment