I need to download files from several pages, using wget -r -l 1 -nd -H --accept-regex 'https://blogspot.com/s[0-9]{4}/[0-9]{3}.pdf' -i list.txt
; in the TXT file I have a list of all the pages from which I need to download, one per line, like
https://blogspot.com/test/001
https://blogspot.com/test/002
and so on.
I’m trying to create different folders for each source, so that all the files downloaded from https://blogspot.com/test/001
are in a folder named 001, all those from https://blogspot.com/test/002
are in a folder 002, and so on.
How could I do that?