Morning guys, I'm trying to download pictures and rename them
I've got 1 product, that has 5 pictures, so 5 pictures to download and rename.
It would look something like :
(full url to download - http://img.tennis-warehouse.com/new_big/AMDBNBW-1.jpg)
url = ['http://img.tennis-warehouse.com/new_big/'] # url is always the same, the name of the of the picture chances always (it's a product name)
old filename = "AMDBNBW-1.jpg" (there's 5 pictures always, so AMDBNBW-2.jpg, AMDBNBW-3.jpg, AMDBNBW-4.jpg, AMDBNBW-5.jpg )
new filename = "FRIDAY-1.jpg" also renamed sequantially from 1 to 5.jpg
I need to rename the AMDBNBW-1.jpg, to something like "FRIDAY-1.jpg", "FRIDAY-2.jpg", "FRIDAY-3.jpg", "FRIDAY-4.jpg", "FRIDAY-5.jpg"
Please help me to solve this. Thank you in advance
I've got 1 product, that has 5 pictures, so 5 pictures to download and rename.
It would look something like :
(full url to download - http://img.tennis-warehouse.com/new_big/AMDBNBW-1.jpg)
url = ['http://img.tennis-warehouse.com/new_big/'] # url is always the same, the name of the of the picture chances always (it's a product name)
old filename = "AMDBNBW-1.jpg" (there's 5 pictures always, so AMDBNBW-2.jpg, AMDBNBW-3.jpg, AMDBNBW-4.jpg, AMDBNBW-5.jpg )
new filename = "FRIDAY-1.jpg" also renamed sequantially from 1 to 5.jpg
I need to rename the AMDBNBW-1.jpg, to something like "FRIDAY-1.jpg", "FRIDAY-2.jpg", "FRIDAY-3.jpg", "FRIDAY-4.jpg", "FRIDAY-5.jpg"
Please help me to solve this. Thank you in advance