en205

Month

April 2009

1 post

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.

Apr 10, 20096 notes
Next page →
2010 2011
  • January
  • February
  • March
  • April 1
  • May 1
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2009 2010 2011
  • January
  • February
  • March
  • April
  • May
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2008 2009 2010
  • January
  • February
  • March
  • April 1
  • May 1
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2008 2009
  • January
  • February
  • March
  • April
  • May
  • June 10
  • July 3
  • August
  • September
  • October
  • November 1
  • December