Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #75085 > unrolled thread

Re: how to download special range content with requests in python?

Started byJoel Goldstick <joel.goldstick@gmail.com>
First post2014-07-23 09:08 -0400
Last post2014-07-23 09:08 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: how to download special range content with requests in python? Joel Goldstick <joel.goldstick@gmail.com> - 2014-07-23 09:08 -0400

#75085 — Re: how to download special range content with requests in python?

FromJoel Goldstick <joel.goldstick@gmail.com>
Date2014-07-23 09:08 -0400
SubjectRe: how to download special range content with requests in python?
Message-ID<mailman.12240.1406120904.18130.python-list@python.org>
On Wed, Jul 23, 2014 at 9:03 AM, Joel Goldstick
<joel.goldstick@gmail.com> wrote:
>
>
>
>
> On Wed, Jul 23, 2014 at 5:44 AM, 水静流深 <1248283536@qq.com> wrote:
>>
>> url='http://debian.cites.illinois.edu/pub/debian-cd/7.6.0/amd64/iso-cd/debian-7.6.0-amd64-CD-1.iso'
>> import requests
>> r = requests.get(url).read(0,1000)  ‍
>>
>> why i can not download special range(from 0 to 10000)  content with requests  in python‍?
>
>
> I've never heard of anyone reading an iso file with requests.  I'm guessing it will work, but it is probably quite large.
>
> What actually happens when you run your code?


Also:
file.read([size])

a file object can take a size, but not two arguments aparently



>>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
>
>
>
> --
> Joel Goldstick
> http://joelgoldstick.com




-- 
Joel Goldstick
http://joelgoldstick.com

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web