Equivalent of 'wget' for python?
Diez B. Roggisch
deets at nospam.web.de
Mon Dec 8 18:50:05 CET 2008
Jean-Paul Calderone wrote:
> On Mon, 08 Dec 2008 17:29:35 +0100, "Diez B. Roggisch"
> <deets at nospam.web.de> wrote:
>>Robert Dailey wrote:
>>> I'm looking for a portable way to download ZIP files on the internet
>>> through Python. I don't want to do os.system() to invoke 'wget', since
>>> this isn't portable on Windows. I'm hoping the core python library has
>>> a library for this. Note that I'll be using Python 3.0.
> There isn't such a module in Python 3.0.
If you knew that urllib2 has been removed/integrated/whatever into urllib,
it would have helped to mention that, don't you think?
To the OP: urllib.request.urlopen is your friend.
More information about the Python-list