Script to pull the # of FB likes for a page or URL

This commit is contained in:
Joshua Sherman 2014-01-27 14:51:13 -05:00
parent c05b0ca3e2
commit 2d9291a067

2
scripts/likes Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
wget http://graph.facebook.com/$1 -q -O - | awk -F ',"(likes|shares)":' '{print substr($2, 0, length($2) - 1)}'