I am downloading ~330k scientific files with wget
from a csv file containing the URLs of the files I need to download. So, I am using the command
wget -i all_the_urls.csv
and my file all_the_urls.csv
looks something like this
http://dr16.sdss.org/sas/dr16/sdss/spectro/redux/v5_13_0/spectra/lite/11040/spec-11040-58456-0109.fits
http://dr16.sdss.org/sas/dr16/sdss/spectro/redux/v5_13_0/spectra/lite/11068/spec-11068-58488-0780.fits
http://dr16.sdss.org/sas/dr16/sdss/spectro/redux/v5_13_0/spectra/lite/11068/spec-11068-58488-0240.fits
The files are small, ~ 250 kB each. But their amount is so large that I will need to sometimes interrupt the download and then continue the download again. Is there a wget
command to use so that I can continue the download where I left of, after the last downloaded file, not at the beginning of the list of URLs?
If there is no such command can you tell me how I can use one of the following work-arounds (I am not aware of wget
):
- after
wget
downloads a file make it erase the URL of this file insideall_the_urls.csv
- before
wget
downloads a new file make it check if this file is already downloaded and if it is, skip to the next file (not sure how time expensive this checking will be though)
Any other ideas are also welcome! tnx