Created
May 30, 2014 12:23
-
-
Save fnobi/8b8bac0cbebfdf7a7599 to your computer and use it in GitHub Desktop.
あるサイトのツイート数・いいね数をterminalで常に表示する ref: http://qiita.com/fnobi/items/4dcf779746bf2385283e
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
export url=$1 | |
while : | |
do | |
likes=$(curl "http://graph.facebook.com/$url" -s | jq '.shares') | |
tweets=$(curl "http://urls.api.twitter.com/1/urls/count.json?url=$url" -s | jq '.count') | |
clear | |
echo $url | |
echo " - likes: $likes" | |
echo " - tweets: $tweets" | |
date | |
sleep 30 | |
done |
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
./buzz.sh http://www.kayac.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment