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


Groups > comp.lang.python > #36412

Re: how to download internet files by python ?

From Roy Smith <roy@panix.com>
Newsgroups comp.lang.python
Subject Re: how to download internet files by python ?
Date 2013-01-08 00:04 -0500
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <roy-7EBFAF.00045408012013@news.panix.com> (permalink)
References <e4fc5450-8816-471f-8f03-ed9229b64602@googlegroups.com> <mailman.259.1357620254.2939.python-list@python.org>

Show all headers | View raw


In article <mailman.259.1357620254.2939.python-list@python.org>,
 Cameron Simpson <cs@zip.com.au> wrote:

> On 07Jan2013 20:19, iMath <redstone-cold@163.com> wrote:
> | for example ,if I want to download this file ,how to implement the download 
> | functionality by python ?
> | 
> | http://down.51voa.com/201208/se-ed-foreign-students-friends-16aug12.mp3
> | 
> | as for  download speed ,of course ,the fast ,the better ,so how to 
> | implement it ?
> | It would be better to show me an example :) thanks !!!
> 
> Look at urllib2.

Even better, look at requests 
(http://docs.python-requests.org/en/latest/).  There's nothing you can 
do with requests that you can't do with urllib2, but the interface is a 
whole lot easier to work with.

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


Thread

how to download internet files by python ? iMath <redstone-cold@163.com> - 2013-01-07 20:19 -0800
  Re: how to download internet files by python ? Cameron Simpson <cs@zip.com.au> - 2013-01-08 15:44 +1100
    Re: how to download internet files by python ? Roy Smith <roy@panix.com> - 2013-01-08 00:04 -0500
      Re: how to download internet files by python ? iMath <redstone-cold@163.com> - 2013-01-09 18:08 -0800
        Re: how to download internet files by python ? Tim Roberts <timr@probo.com> - 2013-01-09 20:31 -0800
  Re: how to download internet files by python ? Rodrick Brown <rodrick.brown@gmail.com> - 2013-01-08 00:00 -0500
  Re: how to download internet files by python ? MRAB <python@mrabarnett.plus.com> - 2013-01-08 15:19 +0000

csiph-web