cinnamon_types=“Ceylon,Korintje,Cassia,Saigon”
path2=Path(“cinnamon”)
if not path2.exists():
path2.mkdir()
for o in cinnamon_types:
dest2 = (path2/o)
dest2.mkdir(exist_ok=True)
results2 = search_images_bing(key, f’{o} cinnamon’)
download_images(dest2,results2.attrgot(‘contentUrls’))
fns2 = get_image_files(path2)
fns2
#this returns
(#0) []
why is this mirror of the bear code not working for my cinnamon image downloader?