-
-
Save igalic/819800c4b87505bbf020 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: | |
# 1. Install twurl from RubyGems | |
# 2. Create a Twitter app at https://apps.twitter.com/ (if you don't have one) | |
# 3. twurl authorize --consumer-key ldny[...]ulfQ --consumer-secret MTXY[...]TRsI | |
# 4. bash tweet_deleter.sh 2010-05 tweets.csv | |
# Use at your own risk ;) | |
tweet_date=$1 | |
tweet_file=$2 | |
for tweet_id in $(awk -F'"' '/^"[0-9]+","[0-9]*\","[0-9]*","'$tweet_date'/ {print $2}' $tweet_file); do | |
twurl -X POST /1.1/statuses/destroy/$tweet_id.json | |
sleep 15 | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment