Skip to content

Instantly share code, notes, and snippets.

@naveen
Last active February 20, 2022 16:53
Show Gist options
  • Save naveen/e3d2b37173cc44289040ede8c3a22e45 to your computer and use it in GitHub Desktop.
Save naveen/e3d2b37173cc44289040ede8c3a22e45 to your computer and use it in GitHub Desktop.
push all currently following into twitter list (backup / archive) using t tool and twurl
# push all currently following into twitter list (backup / archive) using t tool and twurl
#
# a temp hack, as the t tool should do both but i can't get [t followings | xargs t list add following-`date "+%Y-%m-%d"`] to work
# get list of usernames
t followings > followings.txt
# break into 100 username chunks, comma-separated
twurl -d 'screen_name=twitter,twittersupport&list_id=NNNNNN' /1.1/lists/members/create_all.json
@naveen
Copy link
Author

naveen commented Feb 20, 2022

@naveen
Copy link
Author

naveen commented Feb 20, 2022

to get working

  • Go to https://apps.twitter.com/
  • Ensure your app (whether newly created or otherwise) has Read, Write and Access direct messages permissions
  • Locally run gem install twurl
  • Run twurl authorize --consumer-key {YOUR APP'S CONSUMER KEY} --consumer-secret {YOUR APP'S CONSUMER SECRET}
  • Follow the steps it requests that you do
  • Copy ~/.twurlr to ~/.trc

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