I have a list of image URLs which I would like to retrieve iteratively with urllib. The issue I am finding is that once I nominate the file path of the image to be saved, I cannot iteratively change the file path to reflect the fact that a new file should be named differently to the old one.
So for example say my original file path is 'C:\something\something_else\01.png', I'd like to change it to 'C:\something\something_else\02.png'. I think the code might be something along the lines of the following:
for image in list_of_image_URLs:
urllib.request.urlretrieve(image, path)
somehow_redefine_the_path_for_next_loop
Any help would be greatly appreciated!