I am trying to save images from a list of URLS and assign names per another list like was explained here.
URL
list_examples <- c( "https://www.bluemoonfiberarts.com/newmoon/index.php?main_page=index&cPath=19_20_1632&zenid=7c3hdt095727v28lsbn6nrj184",
"https://www.bluemoonfiberarts.com/newmoon/index.php?main_page=index&cPath=19_20_1894&zenid=7c3hdt095727v28lsbn6nrj184",
"https://www.bluemoonfiberarts.com/newmoon/index.php?main_page=index&cPath=19_20_1644&zenid=7c3hdt095727v28lsbn6nrj184")
Designated names
names_examples = c('A Total Eclipse of the Sun',
'Autumn Moon Glow',
'Bewitched')
Iterate through the file and download each file with corresponding name:
for (i in 1:length(list_examples )){
download.file(list_examples [i], destfile = names_examples [i], mode = 'wb')
}
I tried editing the mode to jpg and that didn't work and there's no function for download.jpg
thank you