Created
September 18, 2014 17:15
-
-
Save alobato/ffa07eb14c90edd65eef to your computer and use it in GitHub Desktop.
Download a Facebook video with one line
This file contains hidden or 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
# Ex.: https://www.facebook.com/video.php?v=469066063208329 | |
video=469066063208329; curl -s $(curl -s https://www.facebook.com/video.php?v=$video | grep -o 'https.*thumbnail_src' | sed 's/\\u00253A/:/g' | sed 's/\\u00255C\\u00252F/\//g' | sed 's/\\u002526/\&/g' | sed 's/\\u00253D/=/g' | sed 's/\\u00253F/?/g' | sed 's/\\u002522\\u00252C\\u002522thumbnail_src//g') > $video.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not working on Mac OS Sierra 10.12.5
curl: no URL specified!
I tried changing single quotes to double on the arguments. Tried changing
-o
to-O
.