Thursday, July 21, 2011

python download script

The second answer to this question on StackOverflow is exactly what I need to test my download speed.

http://stackoverflow.com/questions/22676/how-do-i-download-a-file-over-http-using-python

I've already tested it and it works as advertised - it downloads a 10MB file. I should be able to pretty quickly adapt some of the code from my security camera program to handle the timing so that it can run every 30 minutes and record a completion time to a text file.

No comments:

Post a Comment