Skip to content

Instantly share code, notes, and snippets.

@ljcooke
Last active October 29, 2016 11:20
Show Gist options
  • Save ljcooke/ebc8c950382d442e0c6b14ba53bad931 to your computer and use it in GitHub Desktop.
Save ljcooke/ebc8c950382d442e0c6b14ba53bad931 to your computer and use it in GitHub Desktop.
Download a video from Vine.
Download a video from Vine.
Requires a recent version of youtube-dl: https://rg3.github.io/youtube-dl/
Usage example:
./dl-vine.sh https://vine.co/v/ig3PwDLpmEL
#!/usr/bin/env bash
if [ -z "${1:-}" -o "$1" = "-h" -o "$1" = "--help" ]; then
echo "Usage: $0 URL"
exit 1
fi
set -o errexit
url=$1
youtube-dl \
-o "%(uploader)s/%(upload_date)s %(id)s.%(ext)s" \
--add-metadata \
"$url"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment