rsdl.py: command-line downloads from rapidshare.com
I’ve been using rapidshare.com a lot lately (don’t ask). When you’re downloading a lot of files it gets to be a real pain clicking through manually and waiting for the “you freeloader” countdown. This afternoon’s fun with Python was a quick script to batch downloads from the command line. Use it as follows:
% ./rsdl.py http://rapidshare.com/files/12341234/blah.blah
or
% ./rsdl.py < urls.txt
Where urls.txt contains rapidshare URLs to be found via a regular expression. In this mode files that already exist in the current directory are skipped.
Adding a -v argument gives some detail about what is going on.
rsdl.py needs mechanize and urlgrabber. It makes all sorts of assumptions about rapidshare’s HTML and URL structure so it will break any time they change things.
Enjoy.