urllib, urlretrieve method, how to get headers?

Chris Rebert clp2 at rebertia.com
Fri Jul 1 19:02:32 CEST 2011


On Fri, Jul 1, 2011 at 1:53 AM, Даниил Рыжков <daniil.re at gmail.com> wrote:
> Hello again!
> Another question: urlopen() reads full file's content, but how can I
> get page by small parts?

I don't think that's true. Just pass .read() the number of bytes you
want to read, just as you would with an actual file object.

Cheers,
Chris



More information about the Python-list mailing list