Skip to content

Instantly share code, notes, and snippets.

@alobato
Created September 18, 2014 17:15
Show Gist options
  • Save alobato/ffa07eb14c90edd65eef to your computer and use it in GitHub Desktop.
Save alobato/ffa07eb14c90edd65eef to your computer and use it in GitHub Desktop.
Download a Facebook video with one line
# 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
Copy link

ghost commented Jun 9, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment