This blog is subject the DISCLAIMER below.

Thursday, July 01, 2010

Downloading metacafe videos

The following script will download metacafe videos for you:
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= @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 Nabil Al-Aggan said...

The equivalent in Debian (, has 358 lines of python code !