[Tutor] urllib.urlretrieve ?

Mark Lawrence breamoreboy at yahoo.co.uk
Sun Apr 7 21:09:23 CEST 2013


On 07/04/2013 19:49, Matthew Ngaha wrote:

Please don't top post.

> yeah, sadly urlretrieve doesnt exist on my version of python. i just
> need a function to put in the same line that replaces this one with
> the same arguments in order to see the results of my tutorial.
>
> urllib.urlretrieve(self._url, self._filename, reporthook)
>
> On Sun, Apr 7, 2013 at 7:10 PM, Alan Gauld <alan.gauld at btinternet.com> wrote:
>> On 07/04/13 17:20, Matthew Ngaha wrote:
>>>>
>>>> Look in the module docs for urlib.request.
>>>>
>>>
>>> Hi. Ive never used the urllib before
>>
>> In Python 3 urllib combines (the best) features of
>> urllib and urllib2 from Python 2.
>>
>>> web programming. I'm looking at the urllib.request page and i really
>>> don't understand what i'm looking at. I'm confused as to what i should
>>> be looking for.
>>
>> You were asking about urllib.urlretrieve.
>> It's documented on that page.
>>
>> Now, beyond that, what else are you confused about?
>> The more specific the question the more specific the answer.
>>
>> --
>> Alan G
>> Author of the Learn to Program web site
>> http://www.alan-g.me.uk/
>>

See either 
http://docs.python.org/2/library/urllib.html#urllib.urlretrieve or
http://docs.python.org/3/library/urllib.request.html#urllib.request.urlretrieve


-- 
If you're using GoogleCrap™ please read this 
http://wiki.python.org/moin/GoogleGroupsPython.

Mark Lawrence



More information about the Tutor mailing list