This blog is subject the DISCLAIMER below.

Thursday, July 01, 2010

Downloading metacafe videos

The following script will download metacafe videos for you:


metacafe-dl.sh:
url=`wget @1 -o /dev/null -O - | grep 'mediaURL' | sed 's/%22/\n/g' | grep -A 6 mediaURL | sed 's/%3A/:/g' | sed 's|%2F|/|g' | sed 's/%5C//g' | sed 's/%25/%/\
g' | tr '\n' '#' | awk '-F#' '{print @3 "?__gda__=" @7}'`

wget --referer=http://s.mcstatic.com/Flash/vp/mc/Portal_3.2.1.1.swf @url -O `echo @url | sed 's%/%_%g'`.mp4

Just call the file like this
./metacafe-dl http://url-of-the-meta-cafe-video

(due to technical error replace @ with a dollar sign instead).
And you will have your file there. Have a nice time ;)

1 comment:

Mohammad Alaggan said...

The equivalent in Debian (http://packages.debian.org/search?suite=default&section=all&arch=any&searchon=names&keywords=metacafe-dl), has 358 lines of python code !