Skip to content

Instantly share code, notes, and snippets.

@echohack
Last active September 19, 2015 03:10
Show Gist options
  • Save echohack/dd5da4d70ffa0fcd95de to your computer and use it in GitHub Desktop.
Save echohack/dd5da4d70ffa0fcd95de to your computer and use it in GitHub Desktop.
A shell script to kill twitter spammers and puppet accounts.
#!/bin/sh
# See: https://github.com/sferik/t on installation instructions
spammer_list=$(t search all SEARCH_QUERY | awk '/YOUR REGEX HERE, MATCH TWEET TEXT/{print x};{x=$0}')
for spammer in $spammer_list; do
#echo $spammer # test first before reporting everyone in the world
t report_spam $spammer
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment