Created
June 10, 2014 16:01
-
-
Save decklin/c28753f49e1336a3a0e4 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
#!/bin/sh | |
today="$(date +%F)" | |
for f in followers friends; do | |
case "$f" in | |
followers) q='.users[].screen_name';; | |
friends) q='.users[] | .screen_name + "\t" + .name';; | |
esac | |
twitpull -v "/$f/list?count=200" "$q" > "$f.$today" | |
wc -l "$f.$today" | |
diff -u $(ls -rt "$f".* | tail -2) && rm "$f.$today" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment