how to download internet files by python ?
roy at panix.com
Tue Jan 8 06:04:54 CET 2013
In article <mailman.259.1357620254.2939.python-list at python.org>,
Cameron Simpson <cs at zip.com.au> wrote:
> On 07Jan2013 20:19, iMath <redstone-cold at 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.
More information about the Python-list