简体   繁体   English

如何像下载管理器一样在 colab 中下载文件

[英]How to download files in colab like a download manager

Can someone please tell me how to download files in colab like a download manager.有人可以告诉我如何像下载管理器一样在 colab 中下载文件。 I know the standard transfer methods of wget and curl but they don't download the file in parts.我知道 wget 和 curl 的标准传输方法,但它们不会分部分下载文件。 I want to download a file in parts like download managers do.我想像下载管理器那样分部分下载文件。 I want to download a big file very fast but I cannot (using wget or curl)because the file's server has bandwidth limit of 1MBps.我想非常快地下载一个大文件,但我不能(使用 wget 或 curl),因为文件的服务器的带宽限制为 1MBps。 If i am able to download it like a download manager, the file will be downloaded in multiple parts such that the bandwidth limit will be bypassed and I will be able to download the file very fast.如果我能够像下载管理器一样下载它,文件将分多个部分下载,这样带宽限制将被绕过,我将能够非常快速地下载文件。 Is there any way to download like this?有没有这样的下载方式?

I do not know if does met condition不知道是否满足条件

download it like a download manager像下载管理器一样下载

but if your main aim is to shorten download time you might give a try aria2 .但如果您的主要目标是缩短下载时间,您可以尝试aria2 It has aria2c CLI, example of download using 2 connections per host is given as follows它有aria2c CLI,每个主机使用 2 个连接的下载示例如下

aria2c -x2 http://a/f.iso

You need to test it (possibly with different setting) to see if does provide rapid enough download for your use case.您需要对其进行测试(可能使用不同的设置)以查看是否确实为您的用例提供了足够快的下载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM