Looking for a clean Python Wget solution of downloading multiple files at once.
The url will be always the same :
https://example.com/
So far I can do this :
import wget
print('Beginning file download with wget module')
url = 'https://example.com/new_folder/1.jpg'
wget.download(url)
But i need to download also the -2.jpg, -3.jpg , -4.jpg, -5.jpg and rename the NWZV1WB to something like NEWCODE-1.jpg, NEWCODE-2.jpg...
Also I need to download all content(22).jpg files inside a folder and rename the folder localy to something like NEWCODE, but keep the original name of the files
Here the url also is always the same :
import wget
print('Beginning file download with wget module')
url = 'https://example.com/big/1.jpg' #there's 18 jpg inside
wget.download(url)
What would be best, wget (can't find to many articles about) or requests ? Any help is appreciated.