[prog] downloading a directory from the web?

Caroline Johnston johnston at biochemistry.ucl.ac.uk
Thu Jun 23 22:17:12 EST 2005


Thanks - That's exactly what I need.

Cass.

On Thu, 23 Jun 2005, Kathryn Andersen wrote:

> 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
> _______________________________________________
> Programming mailing list
> Programming at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/programming
>



More information about the Programming mailing list