Created
January 4, 2014 18:40
-
-
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
This file contains hidden or 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
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