Skip to content

Instantly share code, notes, and snippets.

@JayCuthrell
Last active November 7, 2021 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JayCuthrell/59c2de1ae1381d96982decb5c61dd545 to your computer and use it in GitHub Desktop.
Save JayCuthrell/59c2de1ae1381d96982decb5c61dd545 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
from __future__ import print_function
import sys
import twitter
from keys import ACCESS_TOKEN_KEY, ACCESS_TOKEN_SECRET, CONSUMER_KEY, CONSUMER_SECRET
api = twitter.Api(
CONSUMER_KEY, CONSUMER_SECRET, ACCESS_TOKEN_KEY, ACCESS_TOKEN_SECRET
)
users = api.GetFriends()
for u in users:
api.UpdateFriendship(
user_id=u.id,follow=False,retweets=False
)
what_to_show = "Disable {} ({}) retweets".format(u.screen_name, u.id)
print(what_to_show)
@JayCuthrell
Copy link
Author

Set everyone you Follow to not show Retweets in your Home view

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment