Skip to content

Instantly share code, notes, and snippets.

@fnobi
Created May 30, 2014 12:23
Show Gist options
  • Save fnobi/8b8bac0cbebfdf7a7599 to your computer and use it in GitHub Desktop.
Save fnobi/8b8bac0cbebfdf7a7599 to your computer and use it in GitHub Desktop.
あるサイトのツイート数・いいね数をterminalで常に表示する ref: http://qiita.com/fnobi/items/4dcf779746bf2385283e
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
./buzz.sh http://www.kayac.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment