Skip to content

Instantly share code, notes, and snippets.

@dannguyen
Last active August 29, 2015 14:04
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 dannguyen/c0ae24e23cc8217e4031 to your computer and use it in GitHub Desktop.
Save dannguyen/c0ae24e23cc8217e4031 to your computer and use it in GitHub Desktop.
Sharknado Protection - protect your twitter timeline from the #sharknado

Sharknado Protection

This series of commands will unfollow anyone you currently follow who has recently mentioned "sharknado".

Pre-installation

If that process worked out OK for you, you're now ready to lay down some serious Twitter passive-aggressiveness, like a proper programmer.

Example

Search your timeline and download tweets that contain "sharknado" into a CSV file

t search timeline "sharknado" --csv > sharknado-tweets.csv

Print out all the tweets to screen:

cat sharknado-tweets.csv

Print out the screen_names of every user in that sharknado-tweet file

csvcut -c 3 sharknado-tweets.csv

Oh what the hell, just unfollow all of those meme-lovers in one go:

csvcut -c 3 sharknado-tweets.csv | xargs t unfollow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment