As a note, Jeremy, the dol.gov URL used in the existing test there is all redirects with zero content (which confused the heck out of me) and may be worth changing to be a URL that returns content from WayBack.
Thank you for this! Great suggestion/addition. And thanks for adding the test. Merging, though will be removing the -nc short flag, since it's slightly inconsistent with the other CLI params.
mimicing wget, adds a no-clobber option, so that files that already exist (and have non-zero size) won't be re-downloaded
On command line
Or in Python,
download_to(..., no_clobber=True)
Tested in
tests/test-download.py
.As a note, Jeremy, the
dol.gov
URL used in the existing test there is all redirects with zero content (which confused the heck out of me) and may be worth changing to be a URL that returns content from WayBack.