Equivalent of 'wget' for python?

hrishy hrishys at yahoo.co.uk
Thu Dec 11 10:36:38 CET 2008


Hi 

Please excuse my OOP but is my understanding correct

urllib.urlretrieve(url_of_zip_file,destination_on_local_filesystem)

is urllib --->Static Class on which the method urlretrieve method is invoked ?

In that case what does the python 3.0 version mean

import urllib.request
urllib.request.urlretrieve(url, local_file_name)

urllib -->static class
request -->method
urlretrieve--> what is this then ?

regards
Hrishy


--- On Mon, 8/12/08, Jerry Hill <malaclypse2 at gmail.com> wrote:

> From: Jerry Hill <malaclypse2 at gmail.com>
> Subject: Re: Equivalent of 'wget' for python?
> To: python-list at python.org
> Date: Monday, 8 December, 2008, 5:54 PM
> On Mon, Dec 8, 2008 at 11:53 AM, r0g
> <aioe.org at technicalbloke.com> wrote:
> > urllib.urlretrieve(url_of_zip_file,
> destination_on_local_filesystem).
> 
> In python 3.0, that appears to be:
> 
> import urllib.request
> urllib.request.urlretrieve(url, local_file_name)
> 
> -- 
> Jerry
> --
> http://mail.python.org/mailman/listinfo/python-list


      



More information about the Python-list mailing list