Skip to content

Instantly share code, notes, and snippets.

@codyaray
Created January 4, 2014 18:40
Show Gist options
  • Save codyaray/8258868 to your computer and use it in GitHub Desktop.
Save codyaray/8258868 to your computer and use it in GitHub Desktop.
Periodically checks a Twitter user's follower count and displays it as a Growl notification. http://codyaray.com/2014/01/hacking-twitter-competitions-automatically-tracking-followers-count
PATH=$PATH:/usr/bin/:/usr/local/bin/:$HOME/bin
curl -s "https://api.twitter.com/1.1/users/show.json?screen_name=Cheesies_Truck" \
-H "Authorization: Bearer <token>" \
| jq ".followers_count" \
| xargs -I {} growlnotify -t "Cheesies Count is {}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment