[prog] downloading a directory from the web?

Kathryn Andersen kat_lists at katspace.homelinux.org
Thu Jun 23 20:34:31 EST 2005


On Thu, Jun 23, 2005 at 09:22:19AM +0100, Caroline Johnston wrote:
> I need to download a whole tree of files starting from a directory listing
> webpage. Is there an easy way to do this? There are hundreds of them and
> they aren't helpfully named, so I'd like to preserve the directory
> structure. I'm trying to do it with perl's WWW::Mechanize module, by it
> seems like the sort of thing that ought to be easier, or that someone else
> will already have done. Any advice?

Um, use "wget"?  It can download things recursively, preserving
directory structure (or not, if you so choose).  There's lots of
options, so read the man page carefully.

Kathryn Andersen
-- 
 _--_|\     | Kathryn Andersen	<http://www.katspace.com>
/      \    | 
\_.--.*/    | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
      v     | 
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha!  |	-> Earth -> Sol -> Milky Way Galaxy -> Universe


More information about the Programming mailing list