Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 使用 urllib2 进行节流
如何下载文件并限制速率?
我正在寻找类似于 的功能wget --limit-rate,目前我正在使用urlretrieve.
wget --limit-rate
urlretrieve
import urllib urllib.urlretrieve("http://example.com/somebigfile.zip", "bigfile.zip") # how to limit-rate?