Bandwidth throttling in Python

前端 未结 2 1968
天命终不由人
天命终不由人 2021-01-31 12:43

What libraries out there let you control the download speed of network requests (http in particular). I don\'t see anything built-in in urllib2 (nor in (Py)Qt which I intend on

2条回答
  •  既然无缘
    2021-01-31 13:07

    Of course twisted can. You want twisted.protocols.policies.ThrottlingFactory. Just wrap your existing factory in it before you pass it to whatever wants a factory.

提交回复
热议问题