Download the "head" of a large file?

erikcw erikwickstrom at
Mon Jul 27 16:38:25 EDT 2009

I'm trying to figure out how to download just the first few lines of a
large (50mb) text file form a server to save bandwidth.  Can Python do

Something like the Python equivalent of curl |
head -c 2048


More information about the Python-list mailing list