Last active
November 11, 2015 20:45
-
-
Save auselen/931b1011b0d56126e349 to your computer and use it in GitHub Desktop.
Download dailymotion videos from one user
This file contains 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
#!/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