用 urllib2 下载一个网络文件,速度不是很快, 50MB带宽,只能用到800KB左右,如何下载第三方的文件进行一些提速的优化操作呢?
学习是最好的投资!
$brew update #routine$brew install aria2 #Install$aria2c -i urlist.txt (similar to wget)
Everyone saidurllib2慢,建议用urllib3,你可以试试看,从文档上也没看出来单文件下载和urllib2what advantages it has.
urllib2
Or split the file, download multiple segments in parallel, and then merge them again?
How many files can be downloaded at one time? If there are more, you can use multi-threading or multi-process.
Everyone said
urllib2
慢,建议用urllib3,你可以试试看,从文档上也没看出来单文件下载和urllib2
what advantages it has.Or split the file, download multiple segments in parallel, and then merge them again?
How many files can be downloaded at one time? If there are more, you can use multi-threading or multi-process.