Download and save a picture - urllib

Piet van Oostrum piet at cs.uu.nl
Thu Sep 24 06:58:32 EDT 2009


>>>>> MRAB <python at mrabarnett.plus.com> (M) wrote:

>M> mattia wrote:
>>> You were right, the problem was with the print function, using a normal
>>> write everythong works fine.
>>> 
>M> You should open the output file as binary (it doesn't matter on
>M> Linux/Unix, but is a good idea anyway for portability).

It probably DOES matter also on Linux/Unix, as the OP is using Python3.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list