By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,345 Members | 1,775 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,345 IT Pros & Developers. It's quick & easy.

Calculating Download Rate

P: n/a
Hi all,

I want be able to work the download rate for downloading HTML pages
using the urllib.urlopen(url). The way i thought i would do this is
start a timer (or log the current time) just before calling this
function and the stopping the timer (logging the current time again and
the working out the difference) this would give me duration that it
took to retrieve the web-page, not the download rate?

Thanks in advance.

Jan 5 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
At Friday 5/1/2007 08:53, placid wrote:
>I want be able to work the download rate for downloading HTML pages
using the urllib.urlopen(url). The way i thought i would do this is
start a timer (or log the current time) just before calling this
function and the stopping the timer (logging the current time again and
the working out the difference) this would give me duration that it
took to retrieve the web-page, not the download rate?
Then, the download rate in bytes/sec would be (size of page in
bytes)/(time elapsed in seconds)
--
Gabriel Genellina
Softlab SRL


__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas

Jan 5 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.