Added script
This commit is contained in:
parent
20069b1acd
commit
b9a72d5b6c
2 changed files with 7 additions and 0 deletions
5
README.md
Normal file
5
README.md
Normal 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
2
likes
Executable 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)}'
|
Loading…
Add table
Add a link
Reference in a new issue