Closed 573 closed 4 years ago
To circumvent redownloading aborted downloads you can just add:
import os import curlify as cy
and replace the two open(new_folder+final, 'wb').write(myfile.content) statements with:
open(new_folder+final, 'wb').write(myfile.content)
os.popen("{}{}\"{}\"{}".format(cy.to_curl(myfile.request), " -o ", new_folder+final, " -C -").replace("'", "\""))
Assumes a working curl binary nonetheless on your system.
curl
Ok, thanks!
To circumvent redownloading aborted downloads you can just add:
and replace the two
open(new_folder+final, 'wb').write(myfile.content)
statements with:Assumes a working
curl
binary nonetheless on your system.