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


Groups > comp.lang.python > #75082

how to download special range content with requests in python?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <1248283536@qq.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status UNSURE 0.409
X-Spam-Level ****
X-Spam-Evidence '*H*': 0.39; '*S*': 0.21; 'received:14': 0.16; 'subject:download': 0.16; 'subject:requests': 0.16; 'url:debian': 0.16; 'url:iso': 0.16; 'subject:python': 0.16; 'import': 0.22; 'url:edu': 0.26; 'requests': 0.31; 'to:name:python-list': 0.33; 'subject:with': 0.35; 'subject:?': 0.36; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'subject: ': 0.61; 'from:charset:utf-8': 0.61; 'url:0': 0.67; 'skip:r 30': 0.69; 'special': 0.74; 'from:addr:1248283536': 0.84; 'from:addr:qq.com': 0.84; 'message-id:@qq.com': 0.84; 'received:qq.com': 0.84; 'x-mailer:qqmail 2.x': 0.84; '\xe2\x80\x8d': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201307; t=1406110554; bh=b+8JDTty/JAqPpHKih5g3LtPjzLPcegmlFnJF40q6/U=; h=X-QQ-FEAT:X-QQ-SSF:X-HAS-ATTACH:X-QQ-BUSINESS-ORIGIN: X-Originating-IP:X-QQ-STYLE:X-QQ-mid:From:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:Date: X-Priority:Message-ID:X-QQ-MIME:X-Mailer:X-QQ-Mailer:X-QQ-SENDSIZE: X-QQ-FName:X-QQ-LocalIP; b=sbcyrPzlQ63v0yH3kj/6MVqqkgSgx1NpAf+RITlDywa9BGdf6robKo1TN4qVw4dtY 4ewThNNapHkrunaq9pOcH9bClkFHvSfGG+fmhiDuoBh78Rwooe7OAtyywEEK0Z0uJC yoJQOnX5M62DWeseBqRIDVMPPAKdNU2yCZOQe0bI=
X-QQ-FEAT s6M8udPOcGKpS/jRCX05FbE+WC5izhzN6luVFbaacxpoAJY2qCdp+hAaMzhwt s8cyokBQq7dDj/PsqNpcamZNYwqZh94VbPd5KOgtGOltLkeYLalc2tOGsjpIrDXnq2aksVK JlFBgAbpjRNKgZ8J4wH3ZU8ssQZZ6+Kvj1+NkD2c7QizqCBiFg==
X-QQ-SSF 0000000A000000F000000000000000D
X-HAS-ATTACH no
X-QQ-BUSINESS-ORIGIN 2
X-Originating-IP 221.182.18.2
X-QQ-STYLE
X-QQ-mid webmail603t1406108694t5871516
From "水静流深" <1248283536@qq.com>
To "python-list" <python-list@python.org>
Subject how to download special range content with requests in python?
Mime-Version 1.0
Content-Type multipart/alternative; boundary="----=_NextPart_53CF8416_08BCB520_6825717B"
Content-Transfer-Encoding 8Bit
Date Wed, 23 Jul 2014 17:44:54 +0800
X-Priority 3
X-QQ-MIME TCMime 1.0 by Tencent
X-Mailer QQMail 2.x
X-QQ-Mailer QQMail 2.x
X-QQ-SENDSIZE 520
X-QQ-FName 448979CBCE3742ABA7FE0E8376634E0C
X-QQ-LocalIP 163.177.66.155
X-Mailman-Approved-At Wed, 23 Jul 2014 14:51:01 +0200
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12237.1406119861.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1406119861 news.xs4all.nl 2858 [2001:888:2000:d::a6]:60837
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75082

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

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‍?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

how to download special range  content with requests  in python? "水静流深" <1248283536@qq.com> - 2014-07-23 17:44 +0800

csiph-web