I am running a WGET comand manually and I would like to automate it.
this is the command:
Code:
wget -c --load-cookies .cookies/thecookie -P ~/downloads/ URL
I would like to automate this using a script.
Note:
I need to loop and load this command with every file I want to download:
Code:
wget -c --load-cookies .cookies/thecookie
I am aware that I can add -i to get the list of files (url) I want to download from a text file.
The reason I want to loop / load the cookie every time I want to download a file is that website requires the cookie else download will fail.
Another thing if download fails it should proceed to the next file.
Thanks in advance...