I'm writing a program that at 3AM, it reads everything from a file and downloads the files from the links one by one, and stops doing so (pauses the download) if it's 7AM
But my problem is If I use os.system("wget name")
I won't be able to stop it, I can't put a flag in a while loop to check it because os.system()
won't finish until the download is complete. I can't think of any other way.
My net is unstable so I assume I have to use wget
, I heard of urllib
but I'm not sure if it will work with my unstable connection!
I'm planning on running this on ArchLinux on my raspberry Pi