Commandline downloader

Sometimes you would want to download files from rapidshare via the commandline because the webinterface sucks. Did I say sometimes? You *never* want to use the webinterface 🙂

You have to have a premium account to use it.


$user = $ARGV[0];
$pass = $ARGV[1];
$file = $ARGV[2];

`mkdir ~/.cookies; wget --save-cookies ~/.cookies/rapidshare --post-data "login=$user&password=$pass" -O - > /dev/null`;

open(F, $file);
while() {
next if /^$/;
print `wget -c --load-cookies ~/.cookies/rapidshare $_`;

Be the first to leave a comment. Don’t be shy.

Join the Discussion

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>