Skip to content

Instantly share code, notes, and snippets.

@auselen
Last active November 11, 2015 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auselen/931b1011b0d56126e349 to your computer and use it in GitHub Desktop.
Save auselen/931b1011b0d56126e349 to your computer and use it in GitHub Desktop.
Download dailymotion videos from one user
#!/bin/sh
videos=`curl -s "https://api.dailymotion.com/user/$1/videos?limit=100" | jq '.list|.[]|.id'`
for id in $videos;
do
id=${id#\"}
id=${id%\"}
url=`curl -s "https://api.dailymotion.com/video/$id?fields=url"|jq .url`
youtube-dl -f 1080 $url
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment