[Chicago] control bandwidth speed in urllib2?
Lukasz Szybalski
szybalski at gmail.com
Wed Nov 5 04:31:18 CET 2008
Hello,
I was wondering if anybody implemented or knows how to implement
bandwidth speed limit in urllib2.
I need to control how fast urls are downloaded at some consistent rate.
One solution is to sleep for x seconds until average rate is achieved,
but that causes spikes of high bandwidth/no bandwidth. Is there a way
to make urllib2 use 5kb/s constant speed at all times.
Thanks,
Lucas
--
Turbogears2 Manual
http://lucasmanual.com/mywiki/TurboGears2
Bazaar and Launchpad
http://lucasmanual.com/mywiki/bzr
More information about the Chicago
mailing list