Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Script to unmute all muted accounts in twitter
import tweepy
# Install tweepy with `pip3 install tweepy`
# See for info about how to generate credentials
consumer_key = ''
consumer_secret = ''
access_token = ''
access_token_secret = ''
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth, wait_on_rate_limit=True, wait_on_rate_limit_notify=True)
for u in tweepy.Cursor(api.mutes).items():
print(f"Unmutting {u.screen_name}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment