Added script

This commit is contained in:
Josh Sherman 2015-01-19 22:18:04 -05:00
parent 20069b1acd
commit b9a72d5b6c
2 changed files with 7 additions and 0 deletions

5
README.md Normal file
View file

@ -0,0 +1,5 @@
# facebook-likes
Command-line script to grab the number of likes for a URL or Facebook page.
I wanted to move this out of my dotfiles, WIP as I need to make some improvements.

2
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)}'