Re: dailymotion : equivalent de youtube_dl ?
On Saturday 31 March 2007 06:02, Emmanuel Bouthenot wrote:
>
> > existe-t'il un équivalent de youtube_dl pour dailymotion ?
> clive ?
>
> http://home.gna.org/clive/
>
> M.
Pour moi et pour l'instant la fonction suivante marche, testé uniquement pour un [kz]sh.
function dailygrab {
durl=$1
fullurl=`curl $1 2>&1 | grep Location | head -1 | sed -e "s/.*flashvars=\"url=http/http/g" -e "s/&.*//g" | perl -pe 's/\%([A-Fa-f0-9]{2})/pack('C', hex($1))/seg;'`
miniurl=`echo "$fullurl" | sed 's/.*\///' | sed 's/\?.*//'`
wget -c -O$miniurl $fullurl
}
et tu fais, par exemple:
http://www.dailymotion.com/relevance/search/debian/video/xizji_xgl-sous-debian-sid
(1ère vidéo proposée par la recherche du mot-cle "debian"!)
JD.
Reply to: