Skip to content

Instantly share code, notes, and snippets.

@betillogalvan
Created October 16, 2018 00:11
Show Gist options
  • Save betillogalvan/eb9da9b52e135cfa07125215ecd37882 to your computer and use it in GitHub Desktop.
Save betillogalvan/eb9da9b52e135cfa07125215ecd37882 to your computer and use it in GitHub Desktop.
Download Video From Facebook
curl --head https://m.facebook.com/BadabunOficial/videos/2157975401113221/ | grep location | egrep -o "https?:\/\/[^\ ]*" | perl -pe 's/\%(\w\w)/chr hex $1/ge' >> down.txt
echo `cat down.txt` | perl -pe 's/\%(\w\w)/chr hex $1/ge'
cat down.html |perl -pe 's/\%(\w\w)/chr hex $1/ge'| grep 'a'|sed -n 's/.*href="\(.*\)".*/\1/p' | egrep -o "https?:\/\/[^\ ]*" >> result.txt
wget -i result.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment