if not path.exists():
path.mkdir()
for o in bear_types:
dest = (path/o)
dest.mkdir(exist_ok=True)
results = search_images_ddg(f’{o} bear’)
download_images(dest, urls=results)
Hi Niramay
What value is the variable path?
Regards Conwyn
bear_types = ‘grizzly’, ‘black’, ‘teddy’
path = Path(‘bears’)